home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / cross / ava-0.2.5.lha / ava-0.2.5 / doc / ava.tex < prev    next >
LaTeX Document  |  1999-03-23  |  45.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX 2e document text default
99% file LaTeX document text default
98% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/280 LaTeX (Master document) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000010| 25 25 25 25 25 25 25 25 | 25 0a 25 20 61 76 61 2e |%%%%%%%%|%.% ava.|
|00000020| 74 65 78 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |tex | |
|00000030| 20 20 25 0a 25 20 41 56 | 41 20 55 73 65 72 27 73 | %.% AV|A User's|
|00000040| 20 4d 61 6e 75 61 6c 20 | 20 20 20 20 25 0a 25 20 | Manual | %.% |
|00000050| 55 72 6f 73 20 50 6c 61 | 74 69 73 65 20 28 63 29 |Uros Pla|tise (c)|
|00000060| 20 31 39 39 39 20 25 0a | 25 25 25 25 25 25 25 25 | 1999 %.|%%%%%%%%|
|00000070| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000080| 25 0a 0a 0a 25 25 25 25 | 25 25 25 25 25 25 25 25 |%...%%%%|%%%%%%%%|
|00000090| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000000a0| 25 25 25 25 25 25 0a 25 | 20 47 65 6e 65 72 61 6c |%%%%%%.%| General|
|000000b0| 20 45 6e 76 69 72 6f 6e | 6d 65 6e 74 20 44 65 66 | Environ|ment Def|
|000000c0| 69 6e 69 74 69 6f 6e 73 | 0a 0a 5c 64 6f 63 75 6d |initions|..\docum|
|000000d0| 65 6e 74 63 6c 61 73 73 | 5b 61 34 70 61 70 65 72 |entclass|[a4paper|
|000000e0| 2c 74 77 6f 73 69 64 65 | 5d 7b 62 6f 6f 6b 7d 0a |,twoside|]{book}.|
|000000f0| 5c 75 73 65 70 61 63 6b | 61 67 65 5b 64 76 69 70 |\usepack|age[dvip|
|00000100| 73 5d 7b 65 70 73 66 69 | 67 7d 0a 25 5c 75 73 65 |s]{epsfi|g}.%\use|
|00000110| 70 61 63 6b 61 67 65 5b | 5d 7b 72 6f 74 61 74 69 |package[|]{rotati|
|00000120| 6e 67 7d 0a 0a 25 20 54 | 68 65 20 66 6f 6c 6c 6f |ng}..% T|he follo|
|00000130| 77 69 6e 67 20 6f 70 74 | 69 6f 6e 20 6d 69 67 68 |wing opt|ion migh|
|00000140| 74 20 62 65 20 75 73 65 | 64 20 77 69 74 68 20 42 |t be use|d with B|
|00000150| 35 20 70 61 70 65 72 20 | 63 6f 6e 66 69 67 75 72 |5 paper |configur|
|00000160| 61 74 69 6f 6e 2e 0a 5c | 72 61 67 67 65 64 62 6f |ation..\|raggedbo|
|00000170| 74 74 6f 6d 0a 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |ttom..\n|ewcomman|
|00000180| 64 7b 5c 66 69 67 7d 5b | 33 5d 0a 20 20 7b 5c 62 |d{\fig}[|3]. {\b|
|00000190| 65 67 69 6e 7b 66 69 67 | 75 72 65 7d 20 5c 62 65 |egin{fig|ure} \be|
|000001a0| 67 69 6e 7b 63 65 6e 74 | 65 72 7d 0a 20 20 20 5c |gin{cent|er}. \|
|000001b0| 65 70 73 66 69 67 7b 66 | 69 6c 65 3d 23 31 7d 20 |epsfig{f|ile=#1} |
|000001c0| 5c 63 61 70 74 69 6f 6e | 7b 23 32 7d 20 5c 6c 61 |\caption|{#2} \la|
|000001d0| 62 65 6c 7b 23 33 7d 20 | 0a 20 20 20 5c 65 6e 64 |bel{#3} |. \end|
|000001e0| 7b 63 65 6e 74 65 72 7d | 20 5c 65 6e 64 7b 66 69 |{center}| \end{fi|
|000001f0| 67 75 72 65 7d 7d 0a 0a | 5c 6e 65 77 63 6f 6d 6d |gure}}..|\newcomm|
|00000200| 61 6e 64 7b 5c 66 69 67 | 48 65 72 65 7d 5b 33 5d |and{\fig|Here}[3]|
|00000210| 0a 20 20 7b 5c 62 65 67 | 69 6e 7b 66 69 67 75 72 |. {\beg|in{figur|
|00000220| 65 7d 5b 68 5d 20 5c 62 | 65 67 69 6e 7b 63 65 6e |e}[h] \b|egin{cen|
|00000230| 74 65 72 7d 0a 20 20 20 | 5c 65 70 73 66 69 67 7b |ter}. |\epsfig{|
|00000240| 66 69 6c 65 3d 23 31 7d | 20 5c 63 61 70 74 69 6f |file=#1}| \captio|
|00000250| 6e 7b 23 32 7d 20 5c 6c | 61 62 65 6c 7b 23 33 7d |n{#2} \l|abel{#3}|
|00000260| 20 0a 20 20 20 5c 65 6e | 64 7b 63 65 6e 74 65 72 | . \en|d{center|
|00000270| 7d 20 5c 65 6e 64 7b 66 | 69 67 75 72 65 7d 7d 0a |} \end{f|igure}}.|
|00000280| 0a 25 20 41 56 52 20 6d | 61 67 69 63 0a 5c 6e 65 |.% AVR m|agic.\ne|
|00000290| 77 63 6f 6d 6d 61 6e 64 | 7b 5c 41 56 52 7d 0a 20 |wcommand|{\AVR}. |
|000002a0| 20 7b 7b 5c 62 66 20 5c | 65 6d 20 41 56 52 7d 20 | {{\bf \|em AVR} |
|000002b0| 7d 0a 20 20 0a 25 20 41 | 56 41 20 6d 61 67 69 63 |}. .% A|VA magic|
|000002c0| 0a 5c 6e 65 77 63 6f 6d | 6d 61 6e 64 7b 5c 41 56 |.\newcom|mand{\AV|
|000002d0| 41 7d 0a 20 20 7b 41 56 | 41 20 7d 0a 0a 25 20 54 |A}. {AV|A }..% T|
|000002e0| 68 65 20 77 61 79 20 73 | 65 67 6d 65 6e 74 20 6e |he way s|egment n|
|000002f0| 61 6d 65 73 20 61 72 65 | 20 70 72 69 6e 74 65 64 |ames are| printed|
|00000300| 20 20 0a 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c | .\newc|ommand{\|
|00000310| 73 65 67 7d 5b 31 5d 0a | 20 20 7b 7b 5c 74 74 20 |seg}[1].| {{\tt |
|00000320| 23 31 7d 7d 0a 20 20 0a | 25 20 57 57 57 20 4c 69 |#1}}. .|% WWW Li|
|00000330| 6e 6b 73 0a 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |nks.\new|command{|
|00000340| 5c 77 77 77 6c 69 6e 6b | 7d 5b 31 5d 0a 20 20 7b |\wwwlink|}[1]. {|
|00000350| 5c 62 65 67 69 6e 7b 71 | 75 6f 74 65 7d 5c 74 74 |\begin{q|uote}\tt|
|00000360| 20 23 31 20 5c 65 6e 64 | 7b 71 75 6f 74 65 7d 7d | #1 \end|{quote}}|
|00000370| 0a 20 20 0a 25 20 52 65 | 6d 61 72 6b 73 0a 5c 6e |. .% Re|marks.\n|
|00000380| 65 77 63 6f 6d 6d 61 6e | 64 7b 5c 72 65 6d 61 72 |ewcomman|d{\remar|
|00000390| 6b 7d 5b 31 5d 0a 20 20 | 7b 5c 65 6d 70 68 7b 23 |k}[1]. |{\emph{#|
|000003a0| 31 7d 7d 0a 0a 25 20 41 | 56 41 20 53 74 65 70 73 |1}}..% A|VA Steps|
|000003b0| 0a 5c 6e 65 77 63 6f 6d | 6d 61 6e 64 7b 5c 61 73 |.\newcom|mand{\as|
|000003c0| 74 65 70 7d 5b 31 5d 0a | 20 20 7b 5c 62 65 67 69 |tep}[1].| {\begi|
|000003d0| 6e 7b 71 75 6f 74 65 7d | 5c 74 74 20 23 31 20 5c |n{quote}|\tt #1 \|
|000003e0| 65 6e 64 7b 71 75 6f 74 | 65 7d 7d 0a 20 20 0a 25 |end{quot|e}}. .%|
|000003f0| 20 41 56 41 20 49 6e 6c | 69 6e 65 20 53 74 65 70 | AVA Inl|ine Step|
|00000400| 73 0a 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 61 |s.\newco|mmand{\a|
|00000410| 69 73 74 65 70 7d 5b 31 | 5d 0a 20 20 7b 7b 5c 74 |istep}[1|]. {{\t|
|00000420| 74 20 23 31 7d 7d 0a 20 | 20 0a 25 20 41 56 41 20 |t #1}}. | .% AVA |
|00000430| 53 70 65 63 69 61 6c 73 | 0a 0a 25 20 64 69 72 65 |Specials|..% dire|
|00000440| 63 74 6f 72 79 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |ctory.\n|ewcomman|
|00000450| 64 7b 5c 73 64 69 72 7d | 5b 31 5d 0a 20 20 7b 7b |d{\sdir}|[1]. {{|
|00000460| 5c 74 74 20 23 31 7d 7d | 0a 20 20 0a 5c 6e 65 77 |\tt #1}}|. .\new|
|00000470| 63 6f 6d 6d 61 6e 64 7b | 5c 73 66 69 6c 65 7d 5b |command{|\sfile}[|
|00000480| 31 5d 0a 20 20 7b 5c 65 | 6d 70 68 7b 23 31 7d 7d |1]. {\e|mph{#1}}|
|00000490| 0a 0a 0a 25 20 54 68 65 | 6f 72 65 6d 73 0a 5c 6e |...% The|orems.\n|
|000004a0| 65 77 74 68 65 6f 72 65 | 6d 7b 65 78 61 6d 70 6c |ewtheore|m{exampl|
|000004b0| 65 7d 7b 45 78 61 6d 70 | 6c 65 7d 0a 0a 20 20 0a |e}{Examp|le}.. .|
|000004c0| 25 20 4e 6f 74 65 73 0a | 5c 6e 65 77 63 6f 6d 6d |% Notes.|\newcomm|
|000004d0| 61 6e 64 7b 5c 6e 6f 74 | 65 7d 5b 31 5d 0a 20 20 |and{\not|e}[1]. |
|000004e0| 7b 5c 62 65 67 69 6e 7b | 64 65 73 63 72 69 70 74 |{\begin{|descript|
|000004f0| 69 6f 6e 7d 5c 69 74 65 | 6d 5b 4e 6f 74 65 5d 20 |ion}\ite|m[Note] |
|00000500| 23 31 20 5c 65 6e 64 7b | 64 65 73 63 72 69 70 74 |#1 \end{|descript|
|00000510| 69 6f 6e 7d 7d 0a 0a 25 | 20 4d 79 20 49 6e 66 6f |ion}}..%| My Info|
|00000520| 0a 5c 74 69 74 6c 65 7b | 7b 5c 62 66 20 41 56 41 |.\title{|{\bf AVA|
|00000530| 20 55 73 65 72 27 73 20 | 4d 61 6e 75 61 6c 7d 20 | User's |Manual} |
|00000540| 5c 5c 20 7b 5c 74 74 20 | 76 65 72 73 69 6f 6e 20 |\\ {\tt |version |
|00000550| 30 2e 32 2e 35 7d 7d 0a | 5c 61 75 74 68 6f 72 7b |0.2.5}}.|\author{|
|00000560| 55 72 6f 5c 76 20 73 20 | 50 6c 61 74 69 5c 76 20 |Uro\v s |Plati\v |
|00000570| 73 65 7d 0a 25 5c 64 61 | 74 65 7b 31 38 2e 20 46 |se}.%\da|te{18. F|
|00000580| 65 62 72 75 61 72 79 20 | 31 39 39 39 7d 0a 5c 64 |ebruary |1999}.\d|
|00000590| 61 74 65 7b 31 32 2e 20 | 4d 61 72 63 68 20 31 39 |ate{12. |March 19|
|000005a0| 39 39 7d 0a 0a 0a 5c 62 | 65 67 69 6e 7b 64 6f 63 |99}...\b|egin{doc|
|000005b0| 75 6d 65 6e 74 7d 0a 5c | 6d 61 6b 65 74 69 74 6c |ument}.\|maketitl|
|000005c0| 65 0a 0a 5c 74 61 62 6c | 65 6f 66 63 6f 6e 74 65 |e..\tabl|eofconte|
|000005d0| 6e 74 73 0a 0a 0a 5c 63 | 68 61 70 74 65 72 7b 49 |nts...\c|hapter{I|
|000005e0| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 7d 0a 20 0a 20 |ntroduct|ion}. . |
|000005f0| 20 45 76 65 6e 20 74 68 | 6f 75 67 68 20 73 6d 61 | Even th|ough sma|
|00000600| 6c 6c 20 6d 69 63 72 6f | 2d 63 6f 6e 74 72 6f 6c |ll micro|-control|
|00000610| 6c 65 72 73 20 61 72 65 | 20 67 65 74 74 69 6e 67 |lers are| getting|
|00000620| 20 73 74 72 6f 6e 67 65 | 72 20 61 6e 64 20 0a 20 | stronge|r and . |
|00000630| 20 73 74 72 6f 6e 67 65 | 72 20 65 76 65 72 79 20 | stronge|r every |
|00000640| 64 61 79 20 74 68 65 72 | 65 20 69 73 20 73 74 69 |day ther|e is sti|
|00000650| 6c 6c 20 61 20 6c 6f 74 | 20 6f 66 20 63 6f 64 65 |ll a lot| of code|
|00000660| 20 74 6f 20 62 65 20 77 | 72 69 74 74 65 6e 20 69 | to be w|ritten i|
|00000670| 6e 20 0a 20 20 70 75 72 | 65 20 61 73 73 65 6d 62 |n . pur|e assemb|
|00000680| 6c 65 72 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ler. For| example|
|00000690| 0a 20 20 6b 65 72 6e 65 | 6c 20 69 74 73 65 6c 66 |. kerne|l itself|
|000006a0| 2c 20 64 65 76 69 63 65 | 20 64 72 69 76 65 72 73 |, device| drivers|
|000006b0| 2c 20 66 61 73 74 20 69 | 6e 74 65 72 72 75 70 74 |, fast i|nterrupt|
|000006c0| 20 72 6f 75 74 69 6e 65 | 73 2c 0a 20 20 6f 70 74 | routine|s,. opt|
|000006d0| 69 6d 69 7a 65 64 20 6d | 61 74 68 65 6d 61 74 69 |imized m|athemati|
|000006e0| 63 73 20 66 75 6e 63 74 | 69 6f 6e 73 2c 20 65 74 |cs funct|ions, et|
|000006f0| 63 2e 0a 20 20 0a 20 20 | 5c 41 56 41 20 28 61 73 |c.. . |\AVA (as|
|00000700| 73 65 6d 62 6c 65 72 20 | 61 6e 64 20 6c 69 6e 6b |sembler |and link|
|00000710| 65 72 29 0a 20 20 77 61 | 73 20 6d 61 69 6e 6c 79 |er). wa|s mainly|
|00000720| 20 64 65 73 69 67 6e 65 | 64 20 66 6f 72 20 38 20 | designe|d for 8 |
|00000730| 61 6e 64 20 31 36 20 62 | 69 74 20 6d 69 63 72 6f |and 16 b|it micro|
|00000740| 2d 63 6f 6e 74 72 6f 6c | 6c 65 72 73 0a 20 20 62 |-control|lers. b|
|00000750| 75 74 20 63 61 6e 20 62 | 65 20 65 61 73 69 6c 79 |ut can b|e easily|
|00000760| 20 65 78 74 65 6e 64 65 | 64 20 74 6f 20 33 32 20 | extende|d to 32 |
|00000770| 62 69 74 20 66 61 6d 69 | 6c 69 65 73 20 61 6c 73 |bit fami|lies als|
|00000780| 6f 2e 0a 20 20 49 6e 20 | 61 64 64 69 74 69 6f 6e |o.. In |addition|
|00000790| 20 74 6f 20 73 74 61 6e | 64 61 72 64 20 61 73 73 | to stan|dard ass|
|000007a0| 65 6d 62 6c 65 72 73 20 | 66 6f 72 20 6d 69 63 72 |emblers |for micr|
|000007b0| 6f 2d 63 6f 6e 74 72 6f | 6c 6c 65 72 73 0a 20 20 |o-contro|llers. |
|000007c0| 69 74 20 66 65 61 74 75 | 72 65 73 20 70 6f 77 65 |it featu|res powe|
|000007d0| 72 66 75 6c 20 73 65 67 | 6d 65 6e 74 73 20 61 6e |rful seg|ments an|
|000007e0| 64 20 5c 65 6d 70 68 7b | 76 69 72 74 75 61 6c 7d |d \emph{|virtual}|
|000007f0| 20 73 79 6d 62 6f 6c 73 | 2e 0a 20 20 54 68 65 73 | symbols|.. Thes|
|00000800| 65 20 74 77 6f 20 66 65 | 61 74 75 72 65 73 20 69 |e two fe|atures i|
|00000810| 6d 70 72 6f 76 65 20 6d | 6f 64 75 6c 61 72 20 70 |mprove m|odular p|
|00000820| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 61 6e 64 0a 20 |rogrammi|ng and. |
|00000830| 20 61 6c 6c 6f 77 20 6f | 62 6a 65 63 74 73 20 74 | allow o|bjects t|
|00000840| 6f 20 62 65 20 63 6f 6d | 70 6c 65 74 65 6c 79 20 |o be com|pletely |
|00000850| 69 6e 64 65 70 65 6e 64 | 65 64 20 66 72 6f 6d 20 |independ|ed from |
|00000860| 65 61 63 68 20 6f 74 68 | 65 72 2e 0a 20 20 0a 20 |each oth|er.. . |
|00000870| 20 5c 41 56 41 20 69 6e | 74 65 67 72 61 74 65 73 | \AVA in|tegrates|
|00000880| 20 74 77 6f 20 70 61 63 | 6b 61 67 65 73 3a 0a 20 | two pac|kages:. |
|00000890| 20 5c 62 65 67 69 6e 7b | 65 6e 75 6d 65 72 61 74 | \begin{|enumerat|
|000008a0| 65 7d 0a 20 20 20 20 5c | 69 74 65 6d 20 41 73 73 |e}. \|item Ass|
|000008b0| 65 6d 62 6c 65 72 20 61 | 6e 64 0a 20 20 20 20 5c |embler a|nd. \|
|000008c0| 69 74 65 6d 20 4c 69 6e | 6b 65 72 0a 20 20 5c 65 |item Lin|ker. \e|
|000008d0| 6e 64 7b 65 6e 75 6d 65 | 72 61 74 65 7d 0a 20 20 |nd{enume|rate}. |
|000008e0| 44 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 74 68 65 |Dependin|g on the|
|000008f0| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 70 61 | command| line pa|
|00000900| 72 61 6d 65 74 65 72 73 | 20 69 74 20 65 78 65 63 |rameters| it exec|
|00000910| 75 74 65 73 20 65 69 74 | 68 65 72 20 74 68 65 0a |utes eit|her the.|
|00000920| 20 20 66 69 72 73 74 20 | 6f 72 20 74 68 65 20 73 | first |or the s|
|00000930| 65 63 6f 6e 64 20 6f 6e | 65 2e 20 4c 69 62 72 61 |econd on|e. Libra|
|00000940| 72 69 65 73 20 61 72 65 | 20 73 75 70 70 6f 72 74 |ries are| support|
|00000950| 65 64 20 62 79 20 74 68 | 65 0a 20 20 6f 72 64 69 |ed by th|e. ordi|
|00000960| 6e 61 72 79 20 6f 62 6a | 65 63 74 73 20 77 68 65 |nary obj|ects whe|
|00000970| 72 65 20 65 61 63 68 20 | 66 75 6e 63 74 69 6f 6e |re each |function|
|00000980| 20 63 61 6e 20 62 65 20 | 64 65 63 6c 61 72 65 64 | can be |declared|
|00000990| 20 69 6e 20 69 74 73 20 | 6f 77 6e 0a 20 20 73 65 | in its |own. se|
|000009a0| 67 6d 65 6e 74 20 77 68 | 69 63 68 20 69 73 20 72 |gment wh|ich is r|
|000009b0| 65 6d 6f 76 65 64 20 69 | 66 20 6e 6f 74 20 6e 65 |emoved i|f not ne|
|000009c0| 65 64 65 64 2e 0a 20 20 | 0a 20 20 5c 41 56 41 20 |eded.. |. \AVA |
|000009d0| 55 73 65 72 27 73 20 4d | 61 6e 75 61 6c 20 69 73 |User's M|anual is|
|000009e0| 20 64 69 76 69 64 65 64 | 20 69 6e 74 6f 20 74 68 | divided| into th|
|000009f0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 68 61 70 |e follow|ing chap|
|00000a00| 74 65 72 73 3a 0a 20 20 | 5c 62 65 67 69 6e 7b 65 |ters:. |\begin{e|
|00000a10| 6e 75 6d 65 72 61 74 65 | 7d 0a 20 20 20 20 5c 69 |numerate|}. \i|
|00000a20| 74 65 6d 20 49 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |tem Inst|allation|
|00000a30| 20 5c 5c 0a 20 20 20 20 | 20 20 5c 65 6d 70 68 7b | \\. | \emph{|
|00000a40| 0a 20 20 20 20 20 20 20 | 20 47 69 76 65 73 20 72 |. | Gives r|
|00000a50| 65 66 65 72 65 6e 63 65 | 73 20 74 6f 20 64 6f 77 |eference|s to dow|
|00000a60| 6e 6c 6f 61 64 69 6e 67 | 20 6c 6f 63 61 74 69 6f |nloading| locatio|
|00000a70| 6e 73 2c 20 0a 20 20 20 | 20 20 20 20 20 63 6f 6d |ns, . | com|
|00000a80| 70 69 6c 69 6e 67 20 61 | 6e 64 20 69 6e 73 74 61 |piling a|nd insta|
|00000a90| 6c 6c 61 74 69 6f 6e 20 | 70 72 6f 63 65 64 75 72 |llation |procedur|
|00000aa0| 65 2e 0a 20 20 20 20 20 | 20 7d 20 20 20 20 20 20 |e.. | } |
|00000ab0| 20 20 20 20 0a 20 20 20 | 20 5c 69 74 65 6d 20 52 | . | \item R|
|00000ac0| 75 6e 6e 69 6e 67 20 74 | 68 65 20 5c 41 56 41 20 |unning t|he \AVA |
|00000ad0| 5c 5c 0a 20 20 20 20 20 | 20 5c 65 6d 70 68 7b 0a |\\. | \emph{.|
|00000ae0| 20 20 20 20 20 20 20 20 | 54 68 69 73 20 63 68 61 | |This cha|
|00000af0| 70 74 65 72 20 64 65 73 | 63 72 69 62 65 73 20 69 |pter des|cribes i|
|00000b00| 6e 70 75 74 2f 6f 75 74 | 70 75 74 20 73 74 72 65 |nput/out|put stre|
|00000b10| 61 6d 73 20 61 6e 64 20 | 63 6f 6d 6d 61 6e 64 20 |ams and |command |
|00000b20| 6c 69 6e 65 20 6f 70 74 | 69 6f 6e 73 2e 0a 20 20 |line opt|ions.. |
|00000b30| 20 20 20 20 7d 0a 20 20 | 20 20 5c 69 74 65 6d 20 | }. | \item |
|00000b40| 41 73 73 65 6d 62 6c 65 | 72 20 4c 61 6e 67 75 61 |Assemble|r Langua|
|00000b50| 67 65 20 5c 5c 0a 20 20 | 20 20 20 20 5c 65 6d 70 |ge \\. | \emp|
|00000b60| 68 7b 0a 20 20 20 20 20 | 20 20 20 45 78 70 6c 61 |h{. | Expla|
|00000b70| 6e 61 74 69 6f 6e 20 6f | 66 20 50 72 65 70 72 6f |nation o|f Prepro|
|00000b80| 63 65 73 73 6f 72 2c 20 | 53 79 6d 62 6f 6c 73 2c |cessor, |Symbols,|
|00000b90| 20 53 65 67 6d 65 6e 74 | 73 20 61 6e 64 20 6f 74 | Segment|s and ot|
|00000ba0| 68 65 72 20 4b 65 79 77 | 6f 72 64 73 2e 0a 20 20 |her Keyw|ords.. |
|00000bb0| 20 20 20 20 7d 0a 20 20 | 20 20 5c 69 74 65 6d 20 | }. | \item |
|00000bc0| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 69 6e 20 5c |Programm|ing in \|
|00000bd0| 41 56 41 20 5c 5c 0a 20 | 20 20 20 20 20 5c 65 6d |AVA \\. | \em|
|00000be0| 70 68 7b 0a 20 20 20 20 | 20 20 20 20 54 68 69 73 |ph{. | This|
|00000bf0| 20 63 68 61 70 74 65 72 | 20 69 73 20 6d 6f 72 65 | chapter| is more|
|00000c00| 20 6f 66 20 70 72 61 63 | 74 69 63 61 6c 20 69 6e | of prac|tical in|
|00000c10| 74 65 72 65 73 74 2e 20 | 0a 20 20 20 20 20 20 20 |terest. |. |
|00000c20| 20 49 74 20 69 73 20 69 | 6d 70 6f 72 74 61 6e 74 | It is i|mportant|
|00000c30| 20 74 68 61 74 20 5c 41 | 56 41 20 69 73 20 75 73 | that \A|VA is us|
|00000c40| 65 64 20 69 6e 20 61 20 | 70 72 6f 70 65 72 20 77 |ed in a |proper w|
|00000c50| 61 79 20 62 65 63 61 75 | 73 65 20 6f 6e 6c 79 0a |ay becau|se only.|
|00000c60| 20 20 20 20 20 20 20 20 | 69 6e 20 74 68 61 74 20 | |in that |
|00000c70| 63 61 73 65 20 74 68 65 | 20 75 73 65 72 20 63 61 |case the| user ca|
|00000c80| 6e 20 67 65 74 20 6d 61 | 78 69 6d 75 6d 20 66 72 |n get ma|ximum fr|
|00000c90| 6f 6d 20 69 74 2e 0a 20 | 20 20 20 20 20 7d 0a 20 |om it.. | }. |
|00000ca0| 20 5c 65 6e 64 7b 65 6e | 75 6d 65 72 61 74 65 7d | \end{en|umerate}|
|00000cb0| 0a 0a 0a 0a 25 25 25 25 | 25 25 25 25 25 25 25 25 |....%%%%|%%%%%%%%|
|00000cc0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 0a |%%%%%%%%|%%%%%%%.|
|00000cd0| 25 20 49 4e 53 54 41 4c | 4c 41 54 49 4f 4e 20 20 |% INSTAL|LATION |
|00000ce0| 0a 20 20 0a 5c 63 68 61 | 70 74 65 72 7b 49 6e 73 |. .\cha|pter{Ins|
|00000cf0| 74 61 6c 6c 61 74 69 6f | 6e 7d 0a 0a 20 20 5c 41 |tallatio|n}.. \A|
|00000d00| 56 41 20 69 73 20 64 69 | 73 74 72 69 62 75 74 65 |VA is di|stribute|
|00000d10| 64 20 61 73 20 61 20 73 | 6f 75 72 63 65 20 63 6f |d as a s|ource co|
|00000d20| 64 65 20 61 6e 64 20 73 | 68 6f 75 6c 64 20 63 6f |de and s|hould co|
|00000d30| 6d 70 69 6c 65 20 6f 6e | 20 6d 6f 73 74 0a 20 20 |mpile on| most. |
|00000d40| 6f 66 20 74 68 65 20 55 | 4e 2a 58 20 73 79 73 74 |of the U|N*X syst|
|00000d50| 65 6d 73 2e 20 48 61 72 | 64 77 61 72 65 20 61 6e |ems. Har|dware an|
|00000d60| 64 20 73 6f 66 74 77 61 | 72 65 20 72 65 71 75 69 |d softwa|re requi|
|00000d70| 72 65 6d 65 6e 74 73 20 | 66 6f 72 20 63 6f 6d 70 |rements |for comp|
|00000d80| 69 6c 61 74 69 6f 6e 20 | 0a 20 20 61 6e 64 20 69 |ilation |. and i|
|00000d90| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 70 72 6f 63 |nstallat|ion proc|
|00000da0| 65 64 75 72 65 20 61 72 | 65 3a 0a 20 20 5c 62 65 |edure ar|e:. \be|
|00000db0| 67 69 6e 7b 69 74 65 6d | 69 7a 65 7d 0a 20 20 20 |gin{item|ize}. |
|00000dc0| 20 5c 69 74 65 6d 20 47 | 4e 55 20 43 2b 2b 20 63 | \item G|NU C++ c|
|00000dd0| 6f 6d 70 69 6c 65 72 20 | 76 65 72 73 69 6f 6e 20 |ompiler |version |
|00000de0| 32 2e 37 2e 32 2e 31 20 | 6f 72 20 68 69 67 68 65 |2.7.2.1 |or highe|
|00000df0| 72 2e 0a 20 20 20 20 5c | 69 74 65 6d 20 33 20 4d |r.. \|item 3 M|
|00000e00| 42 20 6f 66 20 68 61 72 | 64 20 64 69 73 6b 20 73 |B of har|d disk s|
|00000e10| 70 61 63 65 0a 20 20 20 | 20 5c 69 74 65 6d 20 38 |pace. | \item 8|
|00000e20| 20 4d 42 20 6f 66 20 6d | 65 6d 6f 72 79 20 77 69 | MB of m|emory wi|
|00000e30| 74 68 20 73 77 61 70 20 | 69 73 20 73 75 67 67 65 |th swap |is sugge|
|00000e40| 73 74 65 64 20 5c 5c 0a | 20 20 20 20 20 20 20 20 |sted \\.| |
|00000e50| 20 20 5c 72 65 6d 61 72 | 6b 7b 0a 20 20 20 20 20 | \remar|k{. |
|00000e60| 20 20 20 20 20 49 74 20 | 61 6c 73 6f 20 63 6f 6d | It |also com|
|00000e70| 70 69 6c 65 73 20 6f 6e | 20 34 20 4d 42 20 73 79 |piles on| 4 MB sy|
|00000e80| 73 74 65 6d 73 20 69 6e | 20 61 62 6f 75 74 20 6f |stems in| about o|
|00000e90| 6e 65 20 68 6f 75 72 20 | 61 6e 64 20 6d 6f 72 65 |ne hour |and more|
|00000ea0| 0a 20 20 20 20 20 20 20 | 20 20 20 7d 0a 20 20 5c |. | }. \|
|00000eb0| 65 6e 64 7b 69 74 65 6d | 69 7a 65 7d 20 20 0a 20 |end{item|ize} . |
|00000ec0| 20 54 69 6c 6c 20 6e 6f | 77 20 5c 41 56 41 20 77 | Till no|w \AVA w|
|00000ed0| 61 73 20 74 65 73 74 65 | 64 20 61 6e 64 20 75 73 |as teste|d and us|
|00000ee0| 65 64 20 6f 6e 20 44 65 | 62 69 61 6e 20 61 6e 64 |ed on De|bian and|
|00000ef0| 20 52 65 64 68 61 74 20 | 44 69 73 74 72 69 62 75 | Redhat |Distribu|
|00000f00| 74 69 6f 6e 73 2e 0a 0a | 0a 5c 73 65 63 74 69 6f |tions...|.\sectio|
|00000f10| 6e 7b 4f 62 74 61 69 6e | 69 6e 67 20 74 68 65 20 |n{Obtain|ing the |
|00000f20| 5c 41 56 41 7d 0a 0a 20 | 20 5c 41 56 41 20 63 61 |\AVA}.. | \AVA ca|
|00000f30| 6e 20 62 65 20 64 6f 77 | 6e 6c 6f 61 64 65 64 20 |n be dow|nloaded |
|00000f40| 66 72 6f 6d 20 70 72 69 | 6d 61 72 79 20 77 65 62 |from pri|mary web|
|00000f50| 20 73 69 74 65 3a 20 20 | 0a 20 20 5c 77 77 77 6c | site: |. \wwwl|
|00000f60| 69 6e 6b 7b 68 74 74 70 | 3a 2f 2f 6d 65 64 6f 2e |ink{http|://medo.|
|00000f70| 66 6f 76 2e 75 6e 69 2d | 6d 62 2e 73 69 2f 6d 61 |fov.uni-|mb.si/ma|
|00000f80| 70 70 7d 0a 20 20 4d 69 | 72 72 6f 72 20 73 69 74 |pp}. Mi|rror sit|
|00000f90| 65 73 20 61 72 65 20 6e | 6f 74 20 61 76 61 69 6c |es are n|ot avail|
|00000fa0| 61 62 6c 65 20 79 65 74 | 2e 0a 20 20 0a 20 20 49 |able yet|.. . I|
|00000fb0| 66 20 79 6f 75 20 64 6f | 20 6e 6f 74 20 68 61 76 |f you do| not hav|
|00000fc0| 65 20 66 6f 72 6d 65 72 | 20 76 65 72 73 69 6f 6e |e former| version|
|00000fd0| 73 20 6f 66 20 5c 41 56 | 41 20 79 6f 75 20 68 61 |s of \AV|A you ha|
|00000fe0| 76 65 20 74 6f 20 64 6f | 77 6e 6c 6f 61 64 0a 20 |ve to do|wnload. |
|00000ff0| 20 63 6f 6d 70 6c 65 74 | 65 20 2e 74 61 72 2e 67 | complet|e .tar.g|
|00001000| 7a 20 70 61 63 6b 61 67 | 65 20 61 6e 64 20 6e 6f |z packag|e and no|
|00001010| 74 20 6a 75 73 74 20 5c | 65 6d 70 68 7b 64 69 66 |t just \|emph{dif|
|00001020| 66 7d 20 66 69 6c 65 73 | 2e 0a 20 20 41 66 74 65 |f} files|.. Afte|
|00001030| 72 20 79 6f 75 20 64 6f | 77 6e 6c 6f 61 64 20 74 |r you do|wnload t|
|00001040| 68 65 20 6c 61 74 65 73 | 74 20 72 65 6c 65 61 73 |he lates|t releas|
|00001050| 65 20 65 78 74 72 61 63 | 74 20 69 74 20 61 73 3a |e extrac|t it as:|
|00001060| 0a 20 20 5c 61 73 74 65 | 70 7b 74 61 72 20 2d 7a |. \aste|p{tar -z|
|00001070| 78 66 20 61 76 61 2d 78 | 2e 79 2e 7a 2e 74 61 72 |xf ava-x|.y.z.tar|
|00001080| 2e 67 7a 7d 0a 20 20 45 | 6e 74 65 72 20 74 68 65 |.gz}. E|nter the|
|00001090| 20 5c 61 69 73 74 65 70 | 7b 61 76 61 2d 78 2e 79 | \aistep|{ava-x.y|
|000010a0| 2e 7a 7d 20 64 69 72 65 | 63 74 6f 72 79 20 61 6e |.z} dire|ctory an|
|000010b0| 64 20 79 6f 75 20 73 68 | 61 6c 6c 20 73 65 65 0a |d you sh|all see.|
|000010c0| 20 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | the fo|llowing |
|000010d0| 64 69 72 65 63 74 6f 72 | 79 20 73 74 72 75 63 74 |director|y struct|
|000010e0| 75 72 65 2c 20 77 68 65 | 72 65 3a 0a 20 20 5c 62 |ure, whe|re:. \b|
|000010f0| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 20 20 5c |egin{cen|ter}. \|
|00001100| 62 65 67 69 6e 7b 74 61 | 62 75 6c 61 72 7d 7b 6c |begin{ta|bular}{l|
|00001110| 6c 7d 0a 20 20 20 20 5c | 73 64 69 72 7b 2e 7d 20 |l}. \|sdir{.} |
|00001120| 26 20 69 6e 66 6f 20 66 | 69 6c 65 73 20 5c 5c 0a |& info f|iles \\.|
|00001130| 20 20 20 20 5c 73 64 69 | 72 7b 61 76 61 6c 69 62 | \sdi|r{avalib|
|00001140| 7d 20 26 20 5c 41 56 41 | 20 6c 69 62 72 61 72 79 |} & \AVA| library|
|00001150| 20 5c 5c 0a 20 20 20 20 | 5c 73 64 69 72 7b 73 72 | \\. |\sdir{sr|
|00001160| 63 7d 20 26 20 61 73 73 | 65 6d 62 6c 65 72 20 73 |c} & ass|embler s|
|00001170| 6f 75 72 63 65 20 63 6f | 64 65 20 5c 5c 0a 20 20 |ource co|de \\. |
|00001180| 20 20 5c 73 64 69 72 7b | 64 6f 63 7d 20 26 20 64 | \sdir{|doc} & d|
|00001190| 6f 63 75 6d 65 6e 74 20 | 73 6f 75 72 63 65 20 5c |ocument |source \|
|000011a0| 5c 20 0a 20 20 20 20 5c | 73 64 69 72 7b 65 78 61 |\ . \|sdir{exa|
|000011b0| 6d 70 6c 65 73 7d 20 26 | 20 61 73 73 65 6d 62 6c |mples} &| assembl|
|000011c0| 65 72 20 65 78 61 6d 70 | 6c 65 73 20 5c 5c 0a 20 |er examp|les \\. |
|000011d0| 20 5c 65 6e 64 7b 74 61 | 62 75 6c 61 72 7d 0a 20 | \end{ta|bular}. |
|000011e0| 20 5c 65 6e 64 7b 63 65 | 6e 74 65 72 7d 0a 20 20 | \end{ce|nter}. |
|000011f0| 0a 20 20 0a 5c 73 65 63 | 74 69 6f 6e 7b 43 6f 6e |. .\sec|tion{Con|
|00001200| 66 69 67 75 72 69 6e 67 | 7d 0a 0a 20 20 42 79 20 |figuring|}.. By |
|00001210| 74 68 65 20 64 65 66 61 | 75 6c 74 20 5c 41 56 41 |the defa|ult \AVA|
|00001220| 20 6c 69 62 72 61 72 79 | 20 69 73 20 63 6f 70 69 | library| is copi|
|00001230| 65 64 20 74 6f 20 74 68 | 65 0a 20 20 5c 61 73 74 |ed to th|e. \ast|
|00001240| 65 70 7b 2f 75 73 72 2f | 6c 6f 63 61 6c 2f 75 54 |ep{/usr/|local/uT|
|00001250| 6f 6f 6c 73 2f 61 76 61 | 7d 0a 20 20 64 69 72 65 |ools/ava|}. dire|
|00001260| 63 74 6f 72 79 20 61 6e | 64 20 5c 73 64 69 72 7b |ctory an|d \sdir{|
|00001270| 61 76 61 7d 20 65 78 65 | 63 75 74 61 62 6c 65 20 |ava} exe|cutable |
|00001280| 74 6f 20 74 68 65 0a 20 | 20 5c 61 73 74 65 70 7b |to the. | \astep{|
|00001290| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 62 69 6e 7d 0a |/usr/loc|al/bin}.|
|000012a0| 20 20 64 69 72 65 63 74 | 6f 72 79 2e 20 49 66 20 | direct|ory. If |
|000012b0| 79 6f 75 20 64 69 73 61 | 67 72 65 65 20 77 69 74 |you disa|gree wit|
|000012c0| 68 20 74 68 65 20 64 65 | 66 61 75 6c 74 73 2c 20 |h the de|faults, |
|000012d0| 70 6c 65 61 73 65 20 65 | 64 69 74 20 74 68 65 3a |please e|dit the:|
|000012e0| 0a 20 20 5c 61 73 74 65 | 70 7b 61 76 61 2d 78 2e |. \aste|p{ava-x.|
|000012f0| 79 2e 7a 2f 73 72 63 2f | 4d 61 6b 65 66 69 6c 65 |y.z/src/|Makefile|
|00001300| 7d 0a 20 20 61 6e 64 20 | 63 68 61 6e 67 65 20 64 |}. and |change d|
|00001310| 69 72 65 63 74 6f 72 69 | 65 73 20 74 6f 20 79 6f |irectori|es to yo|
|00001320| 75 72 20 72 65 71 75 69 | 72 65 6d 65 6e 74 73 2e |ur requi|rements.|
|00001330| 0a 20 20 54 68 69 73 20 | 73 65 74 74 69 6e 67 73 |. This |settings|
|00001340| 20 61 66 66 65 63 74 73 | 20 62 6f 74 68 2c 20 63 | affects| both, c|
|00001350| 6f 6d 70 69 6c 61 74 69 | 6f 6e 20 61 6e 64 20 69 |ompilati|on and i|
|00001360| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 70 72 6f 63 |nstallat|ion proc|
|00001370| 65 64 75 72 65 2e 0a 0a | 20 20 50 6f 73 74 73 63 |edure...| Postsc|
|00001380| 72 69 70 74 20 61 6e 64 | 20 48 54 4d 4c 20 76 65 |ript and| HTML ve|
|00001390| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 64 6f 63 |rsion of| the doc|
|000013a0| 75 6d 65 6e 74 20 69 73 | 20 63 6f 70 69 65 64 20 |ument is| copied |
|000013b0| 74 6f 20 74 68 65 0a 20 | 20 5c 61 73 74 65 70 7b |to the. | \astep{|
|000013c0| 2f 75 73 72 2f 64 6f 63 | 2f 75 54 6f 6f 6c 73 2f |/usr/doc|/uTools/|
|000013d0| 61 76 61 7d 0a 20 20 59 | 6f 75 20 63 61 6e 20 63 |ava}. Y|ou can c|
|000013e0| 68 61 6e 67 65 20 74 68 | 65 20 64 65 66 61 75 6c |hange th|e defaul|
|000013f0| 74 20 73 65 74 74 69 6e | 67 73 20 69 6e 20 74 68 |t settin|gs in th|
|00001400| 65 3a 0a 20 20 5c 61 73 | 74 65 70 7b 61 76 61 2d |e:. \as|tep{ava-|
|00001410| 78 2e 79 2e 7a 2f 64 6f | 63 2f 4d 61 6b 65 66 69 |x.y.z/do|c/Makefi|
|00001420| 6c 65 7d 0a 20 20 0a 20 | 20 0a 5c 73 65 63 74 69 |le}. . | .\secti|
|00001430| 6f 6e 7b 43 6f 6d 70 69 | 6c 69 6e 67 7d 0a 0a 20 |on{Compi|ling}.. |
|00001440| 20 53 69 6e 63 65 20 5c | 41 56 41 20 69 73 20 61 | Since \|AVA is a|
|00001450| 20 63 6f 6e 73 6f 6c 65 | 20 61 70 70 6c 69 63 61 | console| applica|
|00001460| 74 69 6f 6e 20 74 68 65 | 72 65 20 61 72 65 20 61 |tion the|re are a|
|00001470| 63 74 75 61 6c 6c 79 20 | 6e 6f 0a 20 20 70 61 72 |ctually |no. par|
|00001480| 61 6d 65 74 65 72 73 20 | 74 6f 20 62 65 20 73 65 |ameters |to be se|
|00001490| 74 20 62 79 20 75 73 65 | 72 73 20 69 6e 64 69 76 |t by use|rs indiv|
|000014a0| 69 64 75 61 6c 6c 79 2e | 20 53 69 6d 70 6c 79 20 |idually.| Simply |
|000014b0| 65 6e 74 65 72 0a 20 20 | 74 68 65 20 64 69 72 65 |enter. |the dire|
|000014c0| 63 74 6f 72 79 20 5c 61 | 69 73 74 65 70 7b 61 76 |ctory \a|istep{av|
|000014d0| 61 2d 78 2e 79 2e 7a 2f | 73 72 63 7d 20 61 6e 64 |a-x.y.z/|src} and|
|000014e0| 20 74 79 70 65 3a 0a 20 | 20 5c 61 73 74 65 70 7b | type:. | \astep{|
|000014f0| 6d 61 6b 65 7d 0a 20 20 | 5c 6e 6f 74 65 7b 5c 41 |make}. |\note{\A|
|00001500| 56 41 20 73 68 6f 75 6c | 64 20 63 6f 6d 70 69 6c |VA shoul|d compil|
|00001510| 65 20 77 69 74 68 6f 75 | 74 20 65 72 72 6f 72 73 |e withou|t errors|
|00001520| 20 61 6e 64 20 77 61 72 | 6e 69 6e 67 73 2e 20 0a | and war|nings. .|
|00001530| 20 20 20 20 20 20 20 20 | 49 66 20 61 6e 79 20 77 | |If any w|
|00001540| 61 72 6e 69 6e 67 20 69 | 73 20 70 72 65 73 65 6e |arning i|s presen|
|00001550| 74 20 72 65 67 61 72 64 | 69 6e 67 20 74 6f 20 74 |t regard|ing to t|
|00001560| 68 65 20 5c 41 56 41 20 | 73 6f 75 72 63 65 0a 20 |he \AVA |source. |
|00001570| 20 20 20 20 20 20 20 70 | 6c 65 61 73 65 20 72 65 | p|lease re|
|00001580| 70 6f 72 74 20 62 75 67 | 20 61 73 20 64 65 73 63 |port bug| as desc|
|00001590| 72 69 62 65 64 20 69 6e | 20 42 75 67 20 52 65 70 |ribed in| Bug Rep|
|000015a0| 6f 72 74 20 73 65 63 74 | 69 6f 6e 20 0a 20 20 20 |ort sect|ion . |
|000015b0| 20 20 20 20 20 5c 72 65 | 66 7b 73 65 63 2d 62 75 | \re|f{sec-bu|
|000015c0| 67 72 65 70 6f 72 74 7d | 7d 0a 20 20 20 20 20 20 |greport}|}. |
|000015d0| 20 20 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|000015e0| 20 20 20 0a 5c 73 65 63 | 74 69 6f 6e 7b 49 6e 73 | .\sec|tion{Ins|
|000015f0| 74 61 6c 6c 61 74 69 6f | 6e 7d 0a 20 20 0a 20 20 |tallatio|n}. . |
|00001600| 54 6f 20 69 6e 73 74 61 | 6c 6c 20 73 6f 66 74 77 |To insta|ll softw|
|00001610| 61 72 65 20 63 68 61 6e | 67 65 20 64 69 72 65 63 |are chan|ge direc|
|00001620| 74 6f 72 79 20 74 6f 20 | 5c 61 69 73 74 65 70 7b |tory to |\aistep{|
|00001630| 61 76 61 2d 78 2e 79 2e | 7a 2f 73 72 63 7d 20 61 |ava-x.y.|z/src} a|
|00001640| 6e 64 0a 20 20 74 79 70 | 65 3a 0a 20 20 5c 61 73 |nd. typ|e:. \as|
|00001650| 74 65 70 7b 6d 61 6b 65 | 20 69 6e 73 74 61 6c 6c |tep{make| install|
|00001660| 7d 0a 20 20 41 66 74 65 | 72 20 69 6e 73 74 61 6c |}. Afte|r instal|
|00001670| 6c 61 74 69 6f 6e 20 79 | 6f 75 20 6d 61 79 20 65 |lation y|ou may e|
|00001680| 6e 74 65 72 20 74 68 65 | 20 5c 61 69 73 74 65 70 |nter the| \aistep|
|00001690| 7b 61 76 61 2d 78 2e 79 | 2e 7a 2f 65 78 61 6d 70 |{ava-x.y|.z/examp|
|000016a0| 6c 65 73 7d 0a 20 20 64 | 69 72 65 63 74 6f 72 79 |les}. d|irectory|
|000016b0| 20 61 6e 64 20 74 79 70 | 65 3a 0a 20 20 5c 61 73 | and typ|e:. \as|
|000016c0| 74 65 70 7b 61 76 61 20 | 65 6e 64 69 61 6e 2e 73 |tep{ava |endian.s|
|000016d0| 7d 0a 20 20 74 6f 20 63 | 6f 6d 70 69 6c 65 20 61 |}. to c|ompile a|
|000016e0| 6e 64 3a 0a 20 20 5c 61 | 73 74 65 70 7b 61 76 61 |nd:. \a|step{ava|
|000016f0| 20 65 6e 64 69 61 6e 2e | 6f 7d 0a 20 20 74 6f 20 | endian.|o}. to |
|00001700| 6c 69 6e 6b 20 69 74 2e | 20 49 66 20 74 68 69 73 |link it.| If this|
|00001710| 20 65 78 61 6d 70 6c 65 | 20 64 69 64 20 6e 6f 74 | example| did not|
|00001720| 20 77 6f 72 6b 2c 20 63 | 6f 6d 70 69 6c 61 74 69 | work, c|ompilati|
|00001730| 6f 6e 20 6f 72 20 69 6e | 73 74 61 6c 6c 61 74 69 |on or in|stallati|
|00001740| 6f 6e 0a 20 20 70 72 6f | 63 65 64 75 72 65 20 68 |on. pro|cedure h|
|00001750| 61 73 20 66 61 69 6c 65 | 64 2e 0a 20 20 42 79 20 |as faile|d.. By |
|00001760| 74 68 65 20 64 65 66 61 | 75 6c 74 20 74 68 65 20 |the defa|ult the |
|00001770| 65 78 65 63 75 74 61 62 | 6c 65 20 63 6f 64 65 20 |executab|le code |
|00001780| 69 73 20 70 75 74 20 69 | 6e 74 6f 0a 20 20 5c 73 |is put i|nto. \s|
|00001790| 64 69 72 7b 61 2e 6f 75 | 74 7d 20 66 69 6c 65 20 |dir{a.ou|t} file |
|000017a0| 75 6e 6c 65 73 73 20 73 | 70 65 63 69 66 69 65 64 |unless s|pecified|
|000017b0| 20 6f 74 68 65 72 77 69 | 73 65 2e 0a 20 20 0a 20 | otherwi|se.. . |
|000017c0| 20 54 6f 20 69 6e 73 74 | 61 6c 6c 20 64 6f 63 75 | To inst|all docu|
|000017d0| 6d 65 6e 74 61 74 69 6f | 6e 20 69 6e 20 50 6f 73 |mentatio|n in Pos|
|000017e0| 74 73 63 72 69 70 74 20 | 61 6e 64 20 48 54 4d 4c |tscript |and HTML|
|000017f0| 20 66 6f 72 6d 61 74 73 | 2c 0a 20 20 63 68 61 6e | formats|,. chan|
|00001800| 67 65 20 64 69 72 65 63 | 74 6f 72 79 20 74 6f 20 |ge direc|tory to |
|00001810| 5c 61 69 73 74 65 70 7b | 61 76 61 2d 78 2e 79 2e |\aistep{|ava-x.y.|
|00001820| 7a 2f 64 6f 63 7d 20 61 | 6e 64 0a 20 20 74 79 70 |z/doc} a|nd. typ|
|00001830| 65 3a 0a 20 20 5c 61 73 | 74 65 70 7b 6d 61 6b 65 |e:. \as|tep{make|
|00001840| 20 69 6e 73 74 61 6c 6c | 7d 0a 0a 0a 0a 25 25 25 | install|}....%%%|
|00001850| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00001860| 25 25 25 25 25 25 25 25 | 0a 25 20 43 4f 4d 4d 41 |%%%%%%%%|.% COMMA|
|00001870| 4e 44 20 4c 49 4e 45 20 | 4f 50 54 49 4f 4e 53 0a |ND LINE |OPTIONS.|
|00001880| 0a 5c 63 68 61 70 74 65 | 72 7b 52 75 6e 6e 69 6e |.\chapte|r{Runnin|
|00001890| 67 20 74 68 65 20 5c 41 | 56 41 7d 0a 0a 20 20 5c |g the \A|VA}.. \|
|000018a0| 41 56 41 20 69 73 20 61 | 20 63 6f 6e 73 6f 6c 65 |AVA is a| console|
|000018b0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 72 75 6e | applica|tion run|
|000018c0| 6e 69 6e 67 20 69 6e 20 | 62 61 74 63 68 20 6d 6f |ning in |batch mo|
|000018d0| 64 65 2e 20 49 74 20 72 | 65 61 64 73 20 69 6e 70 |de. It r|eads inp|
|000018e0| 75 74 0a 20 20 65 69 74 | 68 65 72 20 66 72 6f 6d |ut. eit|her from|
|000018f0| 20 61 20 66 69 6c 65 20 | 6f 72 20 66 72 6f 6d 20 | a file |or from |
|00001900| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 |the stan|dard inp|
|00001910| 75 74 20 28 73 74 64 69 | 6e 29 2e 20 0a 20 20 4f |ut (stdi|n). . O|
|00001920| 75 74 70 75 74 20 69 73 | 20 77 72 69 74 74 65 6e |utput is| written|
|00001930| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 66 69 6c 65 | to anot|her file|
|00001940| 20 6f 72 20 74 6f 20 74 | 68 65 20 53 74 61 6e 64 | or to t|he Stand|
|00001950| 61 72 64 20 4f 75 74 70 | 75 74 20 28 73 74 64 6f |ard Outp|ut (stdo|
|00001960| 75 74 29 2e 20 0a 20 20 | 42 79 20 64 65 66 61 75 |ut). . |By defau|
|00001970| 6c 74 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |lt error| message|
|00001980| 73 20 61 72 65 20 70 72 | 69 6e 74 65 64 20 74 6f |s are pr|inted to|
|00001990| 20 74 68 65 20 53 74 61 | 6e 64 61 72 64 20 45 72 | the Sta|ndard Er|
|000019a0| 72 6f 72 20 28 73 74 64 | 65 72 72 29 2e 0a 20 20 |ror (std|err).. |
|000019b0| 20 20 0a 20 20 5c 73 65 | 63 74 69 6f 6e 7b 49 2f | . \se|ction{I/|
|000019c0| 4f 20 53 74 72 65 61 6d | 73 7d 0a 20 20 0a 20 20 |O Stream|s}. . |
|000019d0| 41 73 73 65 6d 62 6c 65 | 72 20 61 6e 64 20 6c 69 |Assemble|r and li|
|000019e0| 6e 6b 65 72 20 61 72 65 | 20 69 6e 74 65 67 72 61 |nker are| integra|
|000019f0| 74 65 64 2e 20 57 68 69 | 63 68 20 6f 66 20 74 68 |ted. Whi|ch of th|
|00001a00| 65 6d 20 69 73 20 69 6e | 76 6f 6b 65 64 20 69 73 |em is in|voked is|
|00001a10| 20 0a 20 20 69 64 65 6e | 74 69 66 69 65 64 20 66 | . iden|tified f|
|00001a20| 72 6f 6d 20 74 68 65 20 | 73 6f 75 72 63 65 20 66 |rom the |source f|
|00001a30| 69 6c 65 6e 61 6d 65 20 | 65 78 74 65 6e 73 69 6f |ilename |extensio|
|00001a40| 6e 2e 20 0a 20 20 49 66 | 20 53 74 61 6e 64 61 72 |n. . If| Standar|
|00001a50| 64 20 49 6e 70 75 74 20 | 28 73 74 64 69 6e 29 20 |d Input |(stdin) |
|00001a60| 61 6e 64 2f 6f 72 20 53 | 74 61 6e 64 61 72 64 20 |and/or S|tandard |
|00001a70| 4f 75 74 70 75 74 20 28 | 73 74 64 6f 75 74 29 20 |Output (|stdout) |
|00001a80| 61 72 65 0a 20 20 73 70 | 65 63 69 66 69 65 64 20 |are. sp|ecified |
|00001a90| 5c 41 56 41 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |\AVA aut|omatical|
|00001aa0| 6c 79 20 69 6e 76 6f 6b | 65 73 20 41 73 73 65 6d |ly invok|es Assem|
|00001ab0| 62 6c 65 72 2e 20 4c 69 | 6e 6b 65 72 20 63 61 6e |bler. Li|nker can|
|00001ac0| 6e 6f 74 20 75 73 65 0a | 20 20 74 68 65 73 65 20 |not use.| these |
|00001ad0| 74 77 6f 20 73 74 72 65 | 61 6d 73 20 61 73 20 69 |two stre|ams as i|
|00001ae0| 6e 70 75 74 2f 6f 75 74 | 70 75 74 20 73 74 72 65 |nput/out|put stre|
|00001af0| 61 6d 73 2e 0a 20 20 0a | 20 20 54 68 65 20 66 6f |ams.. .| The fo|
|00001b00| 6c 6c 6f 77 69 6e 67 20 | 73 75 66 66 69 78 65 73 |llowing |suffixes|
|00001b10| 20 6f 66 20 73 6f 75 72 | 63 65 20 66 69 6c 65 20 | of sour|ce file |
|00001b20| 6e 61 6d 65 73 20 69 6e | 64 69 63 61 74 65 20 6b |names in|dicate k|
|00001b30| 69 6e 64 20 6f 66 0a 20 | 20 70 72 6f 63 65 73 73 |ind of. | process|
|00001b40| 69 6e 67 20 74 6f 20 62 | 65 20 64 6f 6e 65 3a 0a |ing to b|e done:.|
|00001b50| 20 20 5c 62 65 67 69 6e | 7b 63 65 6e 74 65 72 7d | \begin|{center}|
|00001b60| 0a 20 20 5c 62 65 67 69 | 6e 7b 74 61 62 75 6c 61 |. \begi|n{tabula|
|00001b70| 72 7d 7b 6c 7c 6c 7d 0a | 20 20 20 20 5c 68 6c 69 |r}{l|l}.| \hli|
|00001b80| 6e 65 0a 20 20 20 20 7b | 5c 62 66 20 73 75 66 66 |ne. {|\bf suff|
|00001b90| 69 78 7d 20 26 20 7b 5c | 62 66 20 69 6e 70 75 74 |ix} & {\|bf input|
|00001ba0| 2f 6f 75 74 70 75 74 2c | 20 74 79 70 65 2c 20 61 |/output,| type, a|
|00001bb0| 63 74 69 6f 6e 7d 20 5c | 5c 0a 20 20 20 20 5c 68 |ction} \|\. \h|
|00001bc0| 6c 69 6e 65 0a 20 20 20 | 20 5c 73 64 69 72 7b 2e |line. | \sdir{.|
|00001bd0| 73 7d 20 26 20 69 2c 20 | 61 73 73 65 6d 62 6c 65 |s} & i, |assemble|
|00001be0| 72 20 73 6f 75 72 63 65 | 2c 20 61 73 73 65 6d 62 |r source|, assemb|
|00001bf0| 6c 65 20 5c 5c 0a 20 20 | 20 20 5c 73 64 69 72 7b |le \\. | \sdir{|
|00001c00| 2e 6f 7d 20 26 20 69 2f | 6f 2c 20 6f 62 6a 65 63 |.o} & i/|o, objec|
|00001c10| 74 2c 20 6c 69 6e 6b 20 | 5c 5c 0a 20 20 20 20 5c |t, link |\\. \|
|00001c20| 73 64 69 72 7b 2e 69 6e | 63 2c 20 2e 68 7d 20 26 |sdir{.in|c, .h} &|
|00001c30| 20 69 6e 70 75 74 2c 20 | 69 6e 63 6c 75 64 65 20 | input, |include |
|00001c40| 5c 5c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |\\. | |
|00001c50| 20 20 20 20 20 20 20 26 | 20 5c 65 6d 70 68 7b 6e | &| \emph{n|
|00001c60| 6f 74 20 75 73 75 61 6c | 6c 79 20 6e 61 6d 65 64 |ot usual|ly named|
|00001c70| 20 6f 6e 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 | on comm|and line|
|00001c80| 7d 20 5c 5c 20 20 20 20 | 20 20 20 20 20 20 20 20 |} \\ | |
|00001c90| 0a 20 20 20 20 5c 73 64 | 69 72 7b 2e 6c 73 74 7d |. \sd|ir{.lst}|
|00001ca0| 20 26 20 6f 2c 20 6c 69 | 73 74 69 6e 67 20 72 65 | & o, li|sting re|
|00001cb0| 70 6f 72 74 20 5c 5c 20 | 0a 20 20 20 20 5c 73 64 |port \\ |. \sd|
|00001cc0| 69 72 7b 61 2e 6f 75 74 | 7d 20 26 20 6f 2c 20 6c |ir{a.out|} & o, l|
|00001cd0| 69 6e 6b 65 72 20 64 65 | 66 61 75 6c 74 20 6f 75 |inker de|fault ou|
|00001ce0| 74 70 75 74 20 5c 5c 0a | 20 20 5c 65 6e 64 7b 74 |tput \\.| \end{t|
|00001cf0| 61 62 75 6c 61 72 7d 0a | 20 20 5c 65 6e 64 7b 63 |abular}.| \end{c|
|00001d00| 65 6e 74 65 72 7d 20 20 | 0a 20 20 41 73 73 65 6d |enter} |. Assem|
|00001d10| 62 6c 65 72 20 63 61 6e | 20 61 73 73 65 6d 62 6c |bler can| assembl|
|00001d20| 65 20 6f 6e 65 20 66 69 | 6c 65 20 61 74 20 61 20 |e one fi|le at a |
|00001d30| 74 69 6d 65 20 6f 6e 6c | 79 2e 20 0a 20 20 0a 20 |time onl|y. . . |
|00001d40| 20 0a 20 20 5c 73 65 63 | 74 69 6f 6e 7b 43 6f 6d | . \sec|tion{Com|
|00001d50| 6d 61 6e 64 20 4c 69 6e | 65 20 4f 70 74 69 6f 6e |mand Lin|e Option|
|00001d60| 73 7d 0a 20 20 0a 20 20 | 47 65 6e 65 72 61 6c 20 |s}. . |General |
|00001d70| 73 79 6e 74 61 78 20 6f | 66 20 74 68 65 20 5c 41 |syntax o|f the \A|
|00001d80| 56 41 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |VA comma|nd line |
|00001d90| 70 61 72 61 6d 65 74 65 | 72 73 3a 0a 20 20 5c 61 |paramete|rs:. \a|
|00001da0| 73 74 65 70 7b 61 76 61 | 20 2d 6f 70 74 69 6f 6e |step{ava| -option|
|00001db0| 24 31 24 20 2e 2e 2e 20 | 2d 6f 70 74 69 6f 6e 24 |$1$ ... |-option$|
|00001dc0| 6e 24 20 20 0a 20 20 20 | 20 20 20 20 20 20 5c 20 |n$ . | \ |
|00001dd0| 5c 20 66 69 6c 65 24 31 | 24 2e 78 20 2e 2e 2e 20 |\ file$1|$.x ... |
|00001de0| 66 69 6c 65 24 6e 24 2e | 78 7d 0a 20 20 4f 6e 65 |file$n$.|x}. One|
|00001df0| 20 6f 70 74 69 6f 6e 20 | 63 61 6e 20 62 65 20 73 | option |can be s|
|00001e00| 70 65 63 69 66 69 65 64 | 20 61 66 74 65 72 20 27 |pecified| after '|
|00001e10| 2d 27 20 63 68 61 72 61 | 63 74 65 72 20 6f 6e 6c |-' chara|cter onl|
|00001e20| 79 2e 20 0a 20 20 46 75 | 6c 6c 20 70 61 74 68 20 |y. . Fu|ll path |
|00001e30| 6e 61 6d 65 20 73 68 6f | 75 6c 64 20 62 65 20 6e |name sho|uld be n|
|00001e40| 61 6d 65 64 20 66 6f 72 | 20 61 6c 6c 20 66 69 6c |amed for| all fil|
|00001e50| 65 73 20 74 68 61 74 20 | 61 72 65 20 6e 6f 74 20 |es that |are not |
|00001e60| 66 6f 75 6e 64 20 69 6e | 20 74 68 65 0a 20 20 63 |found in| the. c|
|00001e70| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|00001e80| 2e 0a 20 20 0a 20 20 5c | 6e 6f 74 65 7b 54 68 65 |.. . \|note{The|
|00001e90| 20 6f 72 64 65 72 20 6f | 66 20 6f 70 74 69 6f 6e | order o|f option|
|00001ea0| 73 20 64 6f 65 73 20 6e | 6f 74 20 6d 61 74 74 65 |s does n|ot matte|
|00001eb0| 72 20 62 75 74 20 74 68 | 65 20 6f 72 64 65 72 20 |r but th|e order |
|00001ec0| 6f 66 20 66 69 6c 65 73 | 20 69 73 0a 20 20 20 20 |of files| is. |
|00001ed0| 20 20 20 20 76 65 72 79 | 20 69 6d 70 6f 72 74 61 | very| importa|
|00001ee0| 6e 74 2e 7d 0a 20 20 46 | 69 6c 65 73 20 61 72 65 |nt.}. F|iles are|
|00001ef0| 20 6c 69 6e 6b 65 64 20 | 69 6e 20 65 78 61 63 74 | linked |in exact|
|00001f00| 6c 79 20 74 68 65 20 73 | 61 6d 65 20 73 65 71 75 |ly the s|ame sequ|
|00001f10| 65 6e 63 65 20 61 73 20 | 6c 69 73 74 65 64 20 69 |ence as |listed i|
|00001f20| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00001f30| 6e 65 2e 0a 20 20 54 68 | 69 73 20 68 61 73 20 73 |ne.. Th|is has s|
|00001f40| 74 72 6f 6e 67 20 65 66 | 66 65 63 74 20 6f 6e 20 |trong ef|fect on |
|00001f50| 76 69 72 74 75 61 6c 20 | 73 79 6d 62 6f 6c 73 2e |virtual |symbols.|
|00001f60| 20 50 6c 65 61 73 65 20 | 72 65 66 65 72 20 74 6f | Please |refer to|
|00001f70| 20 73 65 63 74 69 6f 6e | 20 0a 20 20 5c 72 65 66 | section| . \ref|
|00001f80| 7b 73 65 63 2d 6d 61 63 | 72 6f 7d 20 66 6f 72 20 |{sec-mac|ro} for |
|00001f90| 64 65 74 61 69 6c 73 2e | 0a 20 20 0a 20 20 53 65 |details.|. . Se|
|00001fa0| 76 65 72 61 6c 20 6f 70 | 74 69 6f 6e 73 20 61 72 |veral op|tions ar|
|00001fb0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 74 6f 3a 0a |e availa|ble to:.|
|00001fc0| 20 20 5c 62 65 67 69 6e | 7b 69 74 65 6d 69 7a 65 | \begin|{itemize|
|00001fd0| 7d 0a 20 20 20 20 5c 69 | 74 65 6d 20 67 65 74 20 |}. \i|tem get |
|00001fe0| 6f 6e 2d 6c 69 6e 65 20 | 68 65 6c 70 2c 0a 20 20 |on-line |help,. |
|00001ff0| 20 20 5c 69 74 65 6d 20 | 73 65 74 20 74 68 65 20 | \item |set the |
|00002000| 61 73 73 65 6d 62 6c 65 | 72 20 61 6e 64 20 6c 69 |assemble|r and li|
|00002010| 6e 6b 65 72 20 62 65 68 | 61 76 69 6f 75 72 73 20 |nker beh|aviours |
|00002020| 61 6e 64 0a 20 20 20 20 | 5c 69 74 65 6d 20 74 6f |and. |\item to|
|00002030| 20 63 6f 6e 74 72 6f 6c | 20 72 65 70 6f 72 74 73 | control| reports|
|00002040| 2e 0a 0a 20 20 5c 65 6e | 64 7b 69 74 65 6d 69 7a |... \en|d{itemiz|
|00002050| 65 7d 0a 20 20 0a 20 20 | 5c 73 75 62 73 65 63 74 |e}. . |\subsect|
|00002060| 69 6f 6e 7b 48 65 6c 70 | 7d 0a 20 20 0a 20 20 20 |ion{Help|}. . |
|00002070| 20 5c 41 56 41 20 6f 70 | 74 69 6f 6e 73 20 64 65 | \AVA op|tions de|
|00002080| 73 63 72 69 62 65 64 20 | 69 6e 20 74 68 65 20 66 |scribed |in the f|
|00002090| 6f 6c 6c 6f 77 69 6e 67 | 20 74 77 6f 20 73 65 63 |ollowing| two sec|
|000020a0| 74 69 6f 6e 73 20 61 72 | 65 20 61 6c 73 6f 0a 20 |tions ar|e also. |
|000020b0| 20 20 20 64 6f 63 75 6d | 65 6e 74 65 64 20 6f 6e | docum|ented on|
|000020c0| 2d 6c 69 6e 65 2c 20 75 | 73 69 6e 67 20 74 68 65 |-line, u|sing the|
|000020d0| 20 2d 68 20 73 77 69 74 | 63 68 2e 20 46 6f 72 20 | -h swit|ch. For |
|000020e0| 65 78 61 6d 70 6c 65 20 | 74 79 70 65 3a 20 20 20 |example |type: |
|000020f0| 20 0a 20 20 20 20 5c 61 | 73 74 65 70 7b 61 76 61 | . \a|step{ava|
|00002100| 20 2d 68 7d 0a 0a 20 20 | 0a 20 20 5c 73 75 62 73 | -h}.. |. \subs|
|00002110| 65 63 74 69 6f 6e 7b 41 | 73 73 65 6d 62 6c 65 72 |ection{A|ssembler|
|00002120| 20 61 6e 64 20 4c 69 6e | 6b 65 72 20 4f 70 74 69 | and Lin|ker Opti|
|00002130| 6f 6e 73 7d 0a 20 20 0a | 20 20 5c 62 65 67 69 6e |ons}. .| \begin|
|00002140| 7b 63 65 6e 74 65 72 7d | 0a 20 20 5c 62 65 67 69 |{center}|. \begi|
|00002150| 6e 7b 74 61 62 75 6c 61 | 72 7d 7b 7c 6c 7c 6c 7c |n{tabula|r}{|l|l||
|00002160| 7d 0a 20 20 20 20 5c 68 | 6c 69 6e 65 0a 20 20 20 |}. \h|line. |
|00002170| 20 7b 5c 62 66 20 6f 70 | 74 69 6f 6e 7d 20 26 20 | {\bf op|tion} & |
|00002180| 7b 5c 62 66 20 64 65 73 | 63 72 69 70 74 69 6f 6e |{\bf des|cription|
|00002190| 7d 20 5c 5c 0a 20 20 20 | 20 5c 68 6c 69 6e 65 20 |} \\. | \hline |
|000021a0| 5c 68 6c 69 6e 65 0a 20 | 20 20 20 5c 73 64 69 72 |\hline. | \sdir|
|000021b0| 7b 2d 6f 7d 20 5c 65 6d | 70 68 7b 6f 75 74 66 69 |{-o} \em|ph{outfi|
|000021c0| 6c 65 7d 20 26 20 52 65 | 64 69 72 65 63 74 73 20 |le} & Re|directs |
|000021d0| 6f 75 74 70 75 74 20 74 | 6f 20 74 68 65 20 5c 65 |output t|o the \e|
|000021e0| 6d 70 68 7b 6f 75 74 66 | 69 6c 65 7d 2e 20 5c 5c |mph{outf|ile}. \\|
|000021f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 26 |. | &|
|00002200| 20 48 69 6e 74 3a 20 69 | 66 20 5c 65 6d 70 68 7b | Hint: i|f \emph{|
|00002210| 6f 75 74 66 69 6c 65 7d | 20 65 71 75 61 6c 73 20 |outfile}| equals |
|00002220| 5c 65 6d 70 68 7b 73 74 | 64 6f 75 74 7d 2c 20 73 |\emph{st|dout}, s|
|00002230| 74 61 6e 64 61 72 64 20 | 6f 75 74 70 75 74 20 5c |tandard |output \|
|00002240| 5c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |\. | |
|00002250| 26 20 69 73 20 75 73 65 | 64 2e 20 5c 5c 0a 20 20 |& is use|d. \\. |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 20 26 20 5c 65 | | & \e|
|00002270| 6d 70 68 7b 65 78 61 6d | 70 6c 65 3a 7d 20 5c 61 |mph{exam|ple:} \a|
|00002280| 69 73 74 65 70 7b 61 76 | 61 20 2d 6f 20 70 72 6f |istep{av|a -o pro|
|00002290| 6a 65 63 74 20 6d 61 69 | 6e 2e 6f 20 70 72 69 6e |ject mai|n.o prin|
|000022a0| 74 2e 6f 7d 20 5c 5c 0a | 20 20 20 20 5c 68 6c 69 |t.o} \\.| \hli|
|000022b0| 6e 65 0a 20 20 20 20 5c | 73 64 69 72 7b 2d 70 7d |ne. \|sdir{-p}|
|000022c0| 20 26 20 55 73 65 20 73 | 74 64 69 6e 20 61 73 20 | & Use s|tdin as |
|000022d0| 69 6e 70 75 74 20 61 6e | 64 20 73 74 64 6f 75 74 |input an|d stdout|
|000022e0| 20 61 73 20 6f 75 74 70 | 75 74 20 5c 5c 20 0a 20 | as outp|ut \\ . |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 26 20 75 | | & u|
|00002300| 6e 6c 65 73 73 20 2d 6f | 20 69 73 20 73 70 65 63 |nless -o| is spec|
|00002310| 69 66 69 65 64 2e 20 5c | 5c 0a 20 20 20 20 20 20 |ified. \|\. |
|00002320| 20 20 20 20 20 20 20 20 | 26 20 5c 65 6d 70 68 7b | |& \emph{|
|00002330| 65 78 61 6d 70 6c 65 3a | 7d 20 5c 61 69 73 74 65 |example:|} \aiste|
|00002340| 70 7b 61 76 61 20 2d 70 | 20 3c 66 69 6c 65 2e 73 |p{ava -p| <file.s|
|00002350| 20 7c 20 67 7a 69 70 20 | 3e 66 69 6c 65 2e 6f 2e | | gzip |>file.o.|
|00002360| 67 7a 7d 20 5c 5c 0a 20 | 20 20 20 5c 68 6c 69 6e |gz} \\. | \hlin|
|00002370| 65 20 20 20 20 0a 20 20 | 20 20 5c 73 64 69 72 7b |e . | \sdir{|
|00002380| 2d 41 7d 5c 65 6d 70 68 | 7b 64 65 76 69 63 65 5c |-A}\emph|{device\|
|00002390| 7d 7d 20 26 20 44 65 66 | 69 6e 65 73 20 74 61 72 |}} & Def|ines tar|
|000023a0| 67 65 74 20 64 65 76 69 | 63 65 20 5c 65 6d 70 68 |get devi|ce \emph|
|000023b0| 7b 64 65 76 69 63 65 7d | 2e 20 5c 5c 0a 20 20 20 |{device}|. \\. |
|000023c0| 20 5c 68 6c 69 6e 65 20 | 20 20 20 0a 20 20 20 20 | \hline | . |
|000023d0| 5c 73 64 69 72 7b 2d 44 | 7d 5c 65 6d 70 68 7b 6d |\sdir{-D|}\emph{m|
|000023e0| 61 63 72 6f 5c 7b 3d 76 | 61 6c 5c 7d 7d 20 26 20 |acro\{=v|al\}} & |
|000023f0| 44 65 66 69 6e 65 73 20 | 6d 61 63 72 6f 20 77 69 |Defines |macro wi|
|00002400| 74 68 20 76 61 6c 75 65 | 20 5c 65 6d 70 68 7b 76 |th value| \emph{v|
|00002410| 61 6c 7d 2e 20 5c 5c 0a | 20 20 20 20 20 20 20 20 |al}. \\.| |
|00002420| 20 20 20 20 20 20 26 20 | 49 66 20 5c 65 6d 70 68 | & |If \emph|
|00002430| 7b 76 61 6c 7d 20 69 73 | 20 6e 6f 74 20 73 70 65 |{val} is| not spe|
|00002440| 63 69 66 69 65 64 20 31 | 20 69 73 20 61 73 73 75 |cified 1| is assu|
|00002450| 6d 65 64 2e 20 5c 5c 0a | 20 20 20 20 20 20 20 20 |med. \\.| |
|00002460| 20 20 20 20 20 20 26 20 | 5c 65 6d 70 68 7b 65 78 | & |\emph{ex|
|00002470| 61 6d 70 6c 65 31 3a 7d | 20 5c 61 69 73 74 65 70 |ample1:}| \aistep|
|00002480| 7b 61 76 61 20 2d 44 56 | 45 52 3d 32 20 6d 61 69 |{ava -DV|ER=2 mai|
|00002490| 6e 2e 73 7d 20 5c 5c 0a | 20 20 20 20 20 20 20 20 |n.s} \\.| |
|000024a0| 20 20 20 20 20 20 26 20 | 5c 65 6d 70 68 7b 65 78 | & |\emph{ex|
|000024b0| 61 6d 70 6c 65 32 3a 7d | 20 0a 20 20 20 20 20 20 |ample2:}| . |
|000024c0| 20 20 20 20 20 20 20 20 | 20 20 5c 61 69 73 74 65 | | \aiste|
|000024d0| 70 7b 61 76 61 20 2d 44 | 53 54 52 3d 22 24 5c 62 |p{ava -D|STR="$\b|
|000024e0| 61 63 6b 73 6c 61 73 68 | 24 22 73 74 72 69 6e 67 |ackslash|$"string|
|000024f0| 24 5c 62 61 63 6b 73 6c | 61 73 68 24 22 22 20 6d |$\backsl|ash$"" m|
|00002500| 61 69 6e 2e 73 7d 20 5c | 5c 0a 20 20 20 20 5c 68 |ain.s} \|\. \h|
|00002510| 6c 69 6e 65 20 20 20 20 | 0a 20 20 20 20 5c 73 64 |line |. \sd|
|00002520| 69 72 7b 2d 66 7d 5c 65 | 6d 70 68 7b 6d 61 63 72 |ir{-f}\e|mph{macr|
|00002530| 6f 5c 7b 3d 76 61 6c 5c | 7d 7d 20 26 20 44 65 66 |o\{=val\|}} & Def|
|00002540| 69 6e 65 73 20 70 75 62 | 6c 69 63 20 6d 61 63 72 |ines pub|lic macr|
|00002550| 6f 20 77 69 74 68 20 76 | 61 6c 75 65 20 5c 65 6d |o with v|alue \em|
|00002560| 70 68 7b 76 61 6c 7d 2e | 20 5c 5c 0a 20 20 20 20 |ph{val}.| \\. |
|00002570| 20 20 20 20 20 20 20 20 | 20 20 26 20 54 6f 20 6d | | & To m|
|00002580| 61 63 72 6f 20 74 77 6f | 20 75 6e 64 65 72 6c 69 |acro two| underli|
|00002590| 6e 65 73 20 61 72 65 20 | 69 6e 73 65 72 74 65 64 |nes are |inserted|
|000025a0| 20 61 74 20 74 68 65 20 | 62 65 67 69 6e 69 6e 67 | at the |begining|
|000025b0| 2e 20 5c 5c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |. \\. | |
|000025c0| 20 20 20 26 20 49 66 20 | 5c 65 6d 70 68 7b 76 61 | & If |\emph{va|
|000025d0| 6c 7d 20 69 73 20 6e 6f | 74 20 73 70 65 63 69 66 |l} is no|t specif|
|000025e0| 69 65 64 20 31 20 69 73 | 20 61 73 73 75 6d 65 64 |ied 1 is| assumed|
|000025f0| 2e 20 5c 5c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |. \\. | |
|00002600| 20 20 20 26 20 5c 65 6d | 70 68 7b 65 78 61 6d 70 | & \em|ph{examp|
|00002610| 6c 65 31 3a 7d 20 5c 61 | 69 73 74 65 70 7b 61 76 |le1:} \a|istep{av|
|00002620| 61 20 2d 66 61 76 72 5c | 5f 6e 6f 73 6b 69 70 62 |a -favr\|_noskipb|
|00002630| 75 67 20 6d 61 69 6e 2e | 73 7d 20 5c 5c 0a 20 20 |ug main.|s} \\. |
|00002640| 20 20 5c 68 6c 69 6e 65 | 0a 20 20 20 20 5c 73 64 | \hline|. \sd|
|00002650| 69 72 7b 2d 49 7d 5c 65 | 6d 70 68 7b 64 69 72 65 |ir{-I}\e|mph{dire|
|00002660| 63 74 6f 72 79 7d 20 26 | 20 41 64 64 20 69 6e 63 |ctory} &| Add inc|
|00002670| 6c 75 64 65 20 64 69 72 | 65 63 74 6f 72 79 20 74 |lude dir|ectory t|
|00002680| 6f 20 74 68 65 20 73 65 | 61 72 63 68 20 6c 69 73 |o the se|arch lis|
|00002690| 74 2e 20 5c 5c 0a 20 20 | 20 20 20 20 20 20 20 20 |t. \\. | |
|000026a0| 20 20 20 20 26 20 5c 65 | 6d 70 68 7b 65 78 61 6d | & \e|mph{exam|
|000026b0| 70 6c 65 3a 7d 20 5c 61 | 69 73 74 65 70 7b 61 76 |ple:} \a|istep{av|
|000026c0| 61 20 2d 49 2e 2e 2f 69 | 6e 63 6c 75 64 65 20 6d |a -I../i|nclude m|
|000026d0| 61 69 6e 2e 73 7d 20 5c | 5c 0a 20 20 20 20 5c 68 |ain.s} \|\. \h|
|000026e0| 6c 69 6e 65 0a 20 20 20 | 20 5c 73 64 69 72 7b 2d |line. | \sdir{-|
|000026f0| 49 7d 5c 65 6d 70 68 7b | 66 69 6c 65 6e 61 6d 65 |I}\emph{|filename|
|00002700| 7d 20 26 20 49 6e 63 6c | 75 64 65 20 5c 65 6d 70 |} & Incl|ude \emp|
|00002710| 68 7b 66 69 6c 65 6e 61 | 6d 65 7d 20 74 6f 20 74 |h{filena|me} to t|
|00002720| 68 65 20 73 6f 75 72 63 | 65 2e 20 5c 5c 0a 20 20 |he sourc|e. \\. |
|00002730| 20 20 20 20 20 20 20 20 | 20 20 20 20 26 20 5c 65 | | & \e|
|00002740| 6d 70 68 7b 65 78 61 6d | 70 6c 65 3a 7d 20 5c 61 |mph{exam|ple:} \a|
|00002750| 69 73 74 65 70 7b 61 76 | 61 20 2d 49 2e 2e 2f 69 |istep{av|a -I../i|
|00002760| 6e 63 6c 75 64 65 20 6d | 61 69 6e 2e 73 7d 20 5c |nclude m|ain.s} \|
|00002770| 5c 0a 20 20 20 20 5c 68 | 6c 69 6e 65 20 20 20 20 |\. \h|line |
|00002780| 0a 20 20 20 20 5c 73 64 | 69 72 7b 2d 54 7d 5c 65 |. \sd|ir{-T}\e|
|00002790| 6d 70 68 7b 5c 7b 66 69 | 6c 65 6e 61 6d 65 5c 7d |mph{\{fi|lename\}|
|000027a0| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}. | |
|000027b0| 26 20 49 6e 63 6c 75 64 | 65 20 5c 65 6d 70 68 7b |& Includ|e \emph{|
|000027c0| 66 69 6c 65 6e 61 6d 65 | 7d 20 74 6f 20 74 68 65 |filename|} to the|
|000027d0| 20 73 6f 75 72 63 65 2e | 20 5c 5c 0a 20 20 20 20 | source.| \\. |
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 26 20 69 66 20 5c | | & if \|
|000027f0| 65 6d 70 68 7b 66 69 6c | 65 6e 61 6d 65 7d 20 69 |emph{fil|ename} i|
|00002800| 73 20 6e 6f 74 20 67 69 | 76 65 6e 20 5c 65 6d 70 |s not gi|ven \emp|
|00002810| 68 7b 74 61 72 67 65 74 | 2e 69 6e 63 7d 20 69 73 |h{target|.inc} is|
|00002820| 20 75 73 65 64 2e 20 5c | 5c 0a 20 20 20 20 20 20 | used. \|\. |
|00002830| 20 20 20 20 20 20 20 20 | 26 20 54 68 69 64 20 66 | |& Thid f|
|00002840| 69 6c 65 20 69 73 20 74 | 68 65 20 66 69 72 73 74 |ile is t|he first|
|00002850| 20 66 69 6c 65 20 69 6e | 20 74 68 65 20 71 75 65 | file in| the que|
|00002860| 75 65 20 2d 20 62 65 66 | 6f 72 65 20 74 68 6f 73 |ue - bef|ore thos|
|00002870| 65 5c 5c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e\\. | |
|00002880| 20 20 26 20 73 70 65 63 | 69 66 69 65 64 20 62 79 | & spec|ified by|
|00002890| 20 74 68 65 20 2d 49 5c | 65 6d 70 68 7b 66 69 6c | the -I\|emph{fil|
|000028a0| 65 6e 61 6d 65 7d 20 6f | 70 74 69 6f 6e 2e 20 5c |ename} o|ption. \|
|000028b0| 5c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |\. | |
|000028c0| 26 20 49 74 20 69 73 20 | 73 65 61 72 63 68 65 64 |& It is |searched|
|000028d0| 20 69 6e 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 | in the |default |
|000028e0| 64 69 72 65 63 74 6f 72 | 79 5c 5c 0a 20 20 20 20 |director|y\\. |
|000028f0| 20 20 20 20 20 20 20 20 | 20 20 26 20 61 6e 64 20 | | & and |
|00002900| 74 68 65 6e 20 6f 6e 20 | 74 68 65 20 70 72 65 64 |then on |the pred|
|00002910| 65 66 69 6e 65 64 20 6c | 69 73 74 2e 20 53 65 65 |efined l|ist. See|
|00002920| 20 73 65 63 74 69 6f 6e | 20 0a 20 20 20 20 20 20 | section| . |
|00002930| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 72 65 66 | | \ref|
|00002940| 7b 73 65 63 2d 70 72 65 | 70 72 6f 63 7d 20 5c 5c |{sec-pre|proc} \\|
|00002950| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 26 |. | &|
|00002960| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 2e 20 5c 5c | for det|ails. \\|
|00002970| 0a 20 20 20 20 5c 68 6c | 69 6e 65 0a 20 20 5c 65 |. \hl|ine. \e|
|00002980| 6e 64 7b 74 61 62 75 6c | 61 72 7d 0a 20 20 5c 65 |nd{tabul|ar}. \e|
|00002990| 6e 64 7b 63 65 6e 74 65 | 72 7d 20 20 0a 20 20 0a |nd{cente|r} . .|
|000029a0| 20 20 0a 20 20 5c 73 75 | 62 73 65 63 74 69 6f 6e | . \su|bsection|
|000029b0| 7b 52 65 70 6f 72 74 73 | 20 4f 70 74 69 6f 6e 73 |{Reports| Options|
|000029c0| 7d 0a 20 20 0a 20 20 5c | 62 65 67 69 6e 7b 63 65 |}. . \|begin{ce|
|000029d0| 6e 74 65 72 7d 0a 20 20 | 5c 62 65 67 69 6e 7b 74 |nter}. |\begin{t|
|000029e0| 61 62 75 6c 61 72 7d 7b | 7c 6c 7c 6c 7c 7d 0a 20 |abular}{||l|l|}. |
|000029f0| 20 20 20 5c 68 6c 69 6e | 65 0a 20 20 20 20 7b 5c | \hlin|e. {\|
|00002a00| 62 66 20 6f 70 74 69 6f | 6e 7d 20 26 20 7b 5c 62 |bf optio|n} & {\b|
|00002a10| 66 20 64 65 73 63 72 69 | 70 74 69 6f 6e 7d 20 5c |f descri|ption} \|
|00002a20| 5c 0a 20 20 20 20 5c 68 | 6c 69 6e 65 20 5c 68 6c |\. \h|line \hl|
|00002a30| 69 6e 65 0a 20 20 20 20 | 5c 73 64 69 72 7b 2d 76 |ine. |\sdir{-v|
|00002a40| 7d 20 26 20 54 75 72 6e | 20 6f 6e 20 69 6e 66 6f |} & Turn| on info|
|00002a50| 20 6d 65 73 73 61 67 65 | 73 2e 5c 5c 20 0a 09 20 | message|s.\\ .. |
|00002a60| 20 20 20 20 20 26 20 28 | 41 73 73 65 6d 62 6c 65 | & (|Assemble|
|00002a70| 72 20 61 6e 64 20 4c 69 | 6e 6b 65 72 20 73 74 61 |r and Li|nker sta|
|00002a80| 74 75 73 2c 20 53 65 67 | 6d 65 6e 74 20 54 72 65 |tus, Seg|ment Tre|
|00002a90| 65 2c 20 2e 2e 2e 29 20 | 5c 5c 20 20 20 20 0a 20 |e, ...) |\\ . |
|00002aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 26 20 5c | | & \|
|00002ab0| 65 6d 70 68 7b 65 78 61 | 6d 70 6c 65 3a 7d 20 5c |emph{exa|mple:} \|
|00002ac0| 61 69 73 74 65 70 7b 61 | 76 61 20 2d 76 20 6d 61 |aistep{a|va -v ma|
|00002ad0| 69 6e 2e 73 7d 20 5c 5c | 0a 20 20 20 20 5c 68 6c |in.s} \\|. \hl|
|00002ae0| 69 6e 65 0a 20 20 20 20 | 5c 73 64 69 72 7b 2d 4c |ine. |\sdir{-L|
|00002af0| 7d 20 26 20 54 75 72 6e | 20 6f 6e 20 6c 69 73 74 |} & Turn| on list|
|00002b00| 69 6e 67 20 72 65 70 6f | 72 74 73 20 66 6f 72 20 |ing repo|rts for |
|00002b10| 66 69 6c 65 20 62 65 69 | 6e 67 20 5c 5c 20 0a 20 |file bei|ng \\ . |
|00002b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 26 20 61 | | & a|
|00002b30| 73 73 65 6d 62 6c 65 64 | 2e 20 5c 5c 0a 20 20 20 |ssembled|. \\. |
|00002b40| 20 20 20 20 20 20 20 20 | 20 20 20 26 20 5c 65 6d | | & \em|
|00002b50| 70 68 7b 65 78 61 6d 70 | 6c 65 3a 7d 20 5c 61 69 |ph{examp|le:} \ai|
|00002b60| 73 74 65 70 7b 61 76 61 | 20 2d 54 20 6d 61 69 6e |step{ava| -T main|
|00002b70| 2e 73 7d 20 5c 5c 0a 20 | 20 20 20 5c 68 6c 69 6e |.s} \\. | \hlin|
|00002b80| 65 0a 20 20 20 20 5c 73 | 64 69 72 7b 2d 6c 7d 5c |e. \s|dir{-l}\|
|00002b90| 65 6d 70 68 7b 6c 6f 67 | 66 69 6c 65 7d 20 26 20 |emph{log|file} & |
|00002ba0| 52 65 64 69 72 65 63 74 | 20 73 65 67 6d 65 6e 74 |Redirect| segment|
|00002bb0| 20 74 72 65 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | tree in|formatio|
|00002bc0| 6e 20 5c 5c 20 0a 20 20 | 20 20 20 20 20 20 20 20 |n \\ . | |
|00002bd0| 20 20 20 20 26 20 61 6e | 64 20 73 74 61 74 75 73 | & an|d status|
|00002be0| 20 72 65 70 6f 72 74 73 | 20 74 6f 20 74 68 65 20 | reports| to the |
|00002bf0| 66 69 6c 65 2e 20 45 72 | 72 6f 72 73 20 61 6e 64 |file. Er|rors and|
|00002c00| 20 77 61 72 6e 2d 20 5c | 5c 0a 20 20 20 20 20 20 | warn- \|\. |
|00002c10| 20 20 20 20 20 20 20 20 | 26 20 69 6e 67 73 20 61 | |& ings a|
|00002c20| 72 65 20 70 72 69 6e 74 | 65 64 20 74 6f 20 62 6f |re print|ed to bo|
|00002c30| 74 68 2c 20 73 74 64 65 | 72 72 20 61 6e 64 20 5c |th, stde|rr and \|
|00002c40| 65 6d 70 68 7b 6c 6f 67 | 66 69 6c 65 7d 2e 20 5c |emph{log|file}. \|
|00002c50| 5c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |\. | |
|00002c60| 26 20 5c 65 6d 70 68 7b | 65 78 61 6d 70 6c 65 3a |& \emph{|example:|
|00002c70| 7d 20 5c 61 69 73 74 65 | 70 7b 61 76 61 20 2d 6c |} \aiste|p{ava -l|
|00002c80| 61 76 61 2e 6c 6f 67 20 | 6d 61 69 6e 2e 73 7d 20 |ava.log |main.s} |
|00002c90| 5c 5c 0a 20 20 20 20 5c | 68 6c 69 6e 65 0a 20 20 |\\. \|hline. |
|00002ca0| 5c 65 6e 64 7b 74 61 62 | 75 6c 61 72 7d 0a 20 20 |\end{tab|ular}. |
|00002cb0| 5c 65 6e 64 7b 63 65 6e | 74 65 72 7d 0a 20 20 0a |\end{cen|ter}. .|
|00002cc0| 20 20 4f 70 74 69 6f 6e | 73 20 74 68 61 74 20 74 | Option|s that t|
|00002cd0| 61 6b 65 20 73 70 65 63 | 69 61 6c 20 65 66 66 65 |ake spec|ial effe|
|00002ce0| 63 74 20 6f 6e 20 61 73 | 73 65 6d 62 6c 65 72 20 |ct on as|sembler |
|00002cf0| 73 6f 75 72 63 65 20 61 | 72 65 20 66 75 72 74 68 |source a|re furth|
|00002d00| 65 72 0a 20 20 65 78 70 | 6c 61 69 6e 65 64 20 69 |er. exp|lained i|
|00002d10| 6e 20 74 68 65 20 6e 65 | 78 74 20 63 68 61 70 74 |n the ne|xt chapt|
|00002d20| 65 72 2e 0a 0a 0a 0a 25 | 25 25 25 25 25 25 25 25 |er.....%|%%%%%%%%|
|00002d30| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002d40| 25 25 0a 25 20 41 53 53 | 45 4d 42 4c 45 52 20 4c |%%.% ASS|EMBLER L|
|00002d50| 41 4e 47 55 41 47 45 0a | 0a 5c 63 68 61 70 74 65 |ANGUAGE.|.\chapte|
|00002d60| 72 7b 41 73 73 65 6d 62 | 6c 65 72 20 4c 61 6e 67 |r{Assemb|ler Lang|
|00002d70| 75 61 67 65 7d 0a 5c 6c | 61 62 65 6c 7b 73 65 63 |uage}.\l|abel{sec|
|00002d80| 2d 61 73 6d 7d 0a 0a 5c | 73 65 63 74 69 6f 6e 7b |-asm}..\|section{|
|00002d90| 49 6e 70 75 74 7d 0a 0a | 20 20 41 73 73 65 6d 62 |Input}..| Assemb|
|00002da0| 6c 65 72 20 73 6f 75 72 | 63 65 20 63 6f 6e 73 69 |ler sour|ce consi|
|00002db0| 73 74 73 20 6f 66 20 65 | 6c 65 6d 65 6e 74 73 20 |sts of e|lements |
|00002dc0| 63 61 6c 6c 65 64 20 74 | 6f 6b 65 6e 73 2e 20 0a |called t|okens. .|
|00002dd0| 20 20 54 68 65 20 74 6f | 6b 65 6e 20 6d 61 79 20 | The to|ken may |
|00002de0| 62 65 20 6f 6e 65 20 6f | 66 20 74 68 65 20 66 6f |be one o|f the fo|
|00002df0| 6c 6c 6f 77 69 6e 67 3a | 20 6e 75 6d 62 65 72 73 |llowing:| numbers|
|00002e00| 2c 20 73 74 72 69 6e 67 | 2c 20 71 75 6f 74 65 64 |, string|, quoted|
|00002e10| 20 73 74 72 69 6e 67 2c | 0a 20 20 70 72 65 70 72 | string,|. prepr|
|00002e20| 6f 63 65 73 73 6f 72 20 | 64 69 72 65 63 74 69 76 |ocessor |directiv|
|00002e30| 65 73 2c 20 6d 61 74 68 | 20 61 6e 64 20 63 6f 6e |es, math| and con|
|00002e40| 74 72 6f 6c 20 73 79 6d | 62 6f 6c 73 20 61 6e 64 |trol sym|bols and|
|00002e50| 20 72 65 6d 61 72 6b 73 | 2e 0a 20 20 54 6f 20 65 | remarks|.. To e|
|00002e60| 61 63 68 20 74 79 70 65 | 20 6f 66 20 74 6f 6b 65 |ach type| of toke|
|00002e70| 6e 20 61 20 72 61 6e 67 | 65 20 6f 66 20 76 61 6c |n a rang|e of val|
|00002e80| 69 64 20 63 68 61 72 61 | 63 74 65 72 73 20 69 73 |id chara|cters is|
|00002e90| 20 64 65 63 6c 61 72 65 | 64 2e 20 0a 20 20 49 66 | declare|d. . If|
|00002ea0| 20 74 6f 6b 65 6e 20 64 | 6f 65 73 20 6e 6f 74 20 | token d|oes not |
|00002eb0| 6d 61 74 63 68 20 74 68 | 61 74 20 72 61 6e 67 65 |match th|at range|
|00002ec0| 20 6c 65 78 65 72 20 70 | 72 6f 64 75 63 65 73 20 | lexer p|roduces |
|00002ed0| 61 6e 20 65 72 72 6f 72 | 20 61 6e 64 20 61 73 73 |an error| and ass|
|00002ee0| 65 6d 62 6c 65 72 0a 20 | 20 74 65 72 6d 69 6e 61 |embler. | termina|
|00002ef0| 74 65 73 2e 0a 0a 20 20 | 54 68 65 20 74 79 70 65 |tes... |The type|
|00002f00| 73 20 6f 66 20 74 6f 6b | 65 6e 73 20 61 6e 64 20 |s of tok|ens and |
|00002f10| 72 61 6e 67 65 73 20 61 | 72 65 20 72 65 70 72 65 |ranges a|re repre|
|00002f20| 73 65 6e 74 65 64 20 69 | 6e 20 74 68 65 20 74 61 |sented i|n the ta|
|00002f30| 62 6c 65 20 62 65 6c 6f | 77 2e 20 0a 20 20 5c 62 |ble belo|w. . \b|
|00002f40| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 20 20 20 |egin{cen|ter}. |
|00002f50| 20 5c 62 65 67 69 6e 7b | 74 61 62 75 6c 61 72 7d | \begin{|tabular}|
|00002f60| 7b 72 7c 6c 7d 0a 20 20 | 20 20 20 20 5c 68 6c 69 |{r|l}. | \hli|
|00002f70| 6e 65 0a 20 20 20 20 20 | 20 7b 5c 62 66 20 74 6f |ne. | {\bf to|
|00002f80| 6b 65 6e 7d 20 26 20 7b | 5c 62 66 20 69 6e 70 75 |ken} & {|\bf inpu|
|00002f90| 74 20 63 68 61 72 61 63 | 74 65 72 73 7d 20 5c 5c |t charac|ters} \\|
|00002fa0| 0a 20 20 20 20 20 20 5c | 68 6c 69 6e 65 0a 20 20 |. \|hline. |
|00002fb0| 20 20 20 20 64 65 63 69 | 6d 61 6c 20 6e 75 6d 62 | deci|mal numb|
|00002fc0| 65 72 20 26 20 5c 7b 30 | 2e 2e 39 5c 7d 20 5c 5c |er & \{0|..9\} \\|
|00002fd0| 0a 20 20 20 20 20 20 68 | 65 78 20 6e 75 6d 62 65 |. h|ex numbe|
|00002fe0| 72 20 26 20 5c 24 5c 7b | 30 2e 2e 39 2c 61 2e 2e |r & \$\{|0..9,a..|
|00002ff0| 66 2c 41 2e 2e 46 5c 7d | 2c 20 30 78 5c 7b 30 2e |f,A..F\}|, 0x\{0.|
|00003000| 2e 39 2c 61 2e 2e 66 2c | 41 2e 2e 46 5c 7d 20 5c |.9,a..f,|A..F\} \|
|00003010| 5c 0a 20 20 20 20 20 20 | 73 74 72 69 6e 67 20 26 |\. |string &|
|00003020| 20 5c 7b 61 2e 2e 7a 2c | 41 2e 2e 5a 2c 5c 5f 5c | \{a..z,|A..Z,\_\|
|00003030| 7d 5c 7b 61 2e 2e 7a 2c | 41 2e 2e 5a 2c 30 2e 2e |}\{a..z,|A..Z,0..|
|00003040| 39 2c 5c 5f 5c 7d 2c 2e | 2e 2e 20 5c 5c 0a 20 20 |9,\_\},.|.. \\. |
|00003050| 20 20 20 20 71 75 6f 74 | 65 64 20 73 74 72 69 6e | quot|ed strin|
|00003060| 67 20 26 20 60 60 2e 2e | 2e 27 27 20 5c 5c 0a 20 |g & ``..|.'' \\. |
|00003070| 20 20 20 20 20 70 72 65 | 70 72 6f 63 65 73 73 6f | pre|processo|
|00003080| 72 20 26 20 24 5c 73 68 | 61 72 70 24 5c 65 6d 70 |r & $\sh|arp$\emp|
|00003090| 68 7b 73 74 72 69 6e 67 | 7d 20 5c 5c 0a 20 20 20 |h{string|} \\. |
|000030a0| 20 20 20 6d 61 74 68 20 | 73 79 6d 62 6f 6c 73 20 | math |symbols |
|000030b0| 26 20 5c 7b 2b 2c 2d 2c | 2a 2c 2f 5c 2c 3d 2c 24 |& \{+,-,|*,/\,=,$|
|000030c0| 3c 2c 3e 2c 5c 26 2c 7c | 2c 5c 77 65 64 67 65 24 |<,>,\&,||,\wedge$|
|000030d0| 5c 7d 20 5c 5c 0a 20 20 | 20 20 20 20 63 6f 6e 74 |\} \\. | cont|
|000030e0| 72 6f 6c 20 73 79 6d 62 | 6f 6c 73 20 26 20 5c 7b |rol symb|ols & \{|
|000030f0| 2e 2c 20 2c 20 2c 5c 7b | 2c 5c 7d 2c 28 2c 29 2c |., , ,\{|,\},(,),|
|00003100| 24 5c 62 61 63 6b 73 6c | 61 73 68 24 20 5c 7d 20 |$\backsl|ash$ \} |
|00003110| 5c 5c 0a 20 20 20 20 20 | 20 73 74 61 6e 64 61 72 |\\. | standar|
|00003120| 64 20 43 20 72 65 6d 61 | 72 6b 73 20 26 20 2f 2a |d C rema|rks & /*|
|00003130| 20 2e 2e 2e 20 2a 2f 20 | 5c 5c 0a 20 20 20 20 20 | ... */ |\\. |
|00003140| 20 73 74 61 6e 64 61 72 | 64 20 61 73 6d 20 72 65 | standar|d asm re|
|00003150| 6d 61 72 6b 73 20 26 20 | 3b 20 2e 2e 2e 20 5c 5c |marks & |; ... \\|
|00003160| 0a 20 20 20 20 5c 65 6e | 64 7b 74 61 62 75 6c 61 |. \en|d{tabula|
|00003170| 72 7d 0a 20 20 5c 65 6e | 64 7b 63 65 6e 74 65 72 |r}. \en|d{center|
|00003180| 7d 20 20 0a 0a 20 20 5c | 73 75 62 73 65 63 74 69 |} .. \|subsecti|
|00003190| 6f 6e 7b 45 78 70 72 65 | 73 73 69 6f 6e 73 7d 0a |on{Expre|ssions}.|
|000031a0| 20 20 0a 20 20 20 20 45 | 78 70 72 65 73 73 69 6f | . E|xpressio|
|000031b0| 6e 73 20 61 72 65 20 6d | 61 64 65 20 6f 66 20 6e |ns are m|ade of n|
|000031c0| 75 6d 62 65 72 73 2c 20 | 73 74 72 69 6e 67 73 2c |umbers, |strings,|
|000031d0| 20 6d 61 74 68 20 61 6e | 64 20 63 6f 6e 74 72 6f | math an|d contro|
|000031e0| 6c 0a 20 20 20 20 73 79 | 6d 62 6f 6c 73 2e 20 5c |l. sy|mbols. \|
|000031f0| 41 56 41 20 65 78 70 72 | 65 73 73 69 6f 6e 20 73 |AVA expr|ession s|
|00003200| 6f 6c 76 65 72 20 75 6e | 64 65 72 73 74 61 6e 64 |olver un|derstand|
|00003210| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 0a |s the fo|llowing.|
|00003220| 20 20 20 20 6f 70 65 72 | 61 74 69 6f 6e 73 3a 20 | oper|ations: |
|00003230| 20 20 20 0a 20 20 20 20 | 5c 62 65 67 69 6e 7b 63 | . |\begin{c|
|00003240| 65 6e 74 65 72 7d 0a 20 | 20 20 20 20 20 5c 62 65 |enter}. | \be|
|00003250| 67 69 6e 7b 74 61 62 75 | 6c 61 72 7d 7b 72 7c 6c |gin{tabu|lar}{r|l|
|00003260| 7d 0a 20 20 20 20 20 20 | 20 20 5c 68 6c 69 6e 65 |}. | \hline|
|00003270| 0a 20 20 20 20 20 20 20 | 20 7b 5c 62 66 20 73 79 |. | {\bf sy|
|00003280| 6d 62 6f 6c 7d 20 26 20 | 7b 5c 62 66 20 6f 70 65 |mbol} & |{\bf ope|
|00003290| 72 61 74 69 6f 6e 7d 20 | 5c 5c 0a 20 20 20 20 20 |ration} |\\. |
|000032a0| 20 20 20 5c 68 6c 69 6e | 65 0a 20 20 20 20 20 20 | \hlin|e. |
|000032b0| 20 20 24 2b 2c 2d 24 20 | 26 20 61 64 64 2c 20 73 | $+,-$ |& add, s|
|000032c0| 75 62 74 72 61 63 74 20 | 5c 5c 0a 20 20 20 20 20 |ubtract |\\. |
|000032d0| 20 20 20 24 5c 26 2c 7c | 2c 5c 77 65 64 67 65 2c | $\&,||,\wedge,|
|000032e0| 3c 3c 2c 3e 3e 24 20 26 | 20 61 6e 64 2c 20 6f 72 |<<,>>$ &| and, or|
|000032f0| 2c 20 78 6f 72 2c 20 6c | 6f 67 69 63 61 6c 20 73 |, xor, l|ogical s|
|00003300| 68 69 66 74 20 6c 65 66 | 74 2c 20 72 69 67 68 74 |hift lef|t, right|
|00003310| 20 5c 5c 0a 20 20 20 20 | 20 20 20 20 24 2a 2c 20 | \\. | $*, |
|00003320| 2f 24 20 26 20 6d 75 6c | 74 69 70 6c 79 2c 20 64 |/$ & mul|tiply, d|
|00003330| 69 76 69 64 65 20 5c 5c | 0a 20 20 20 20 20 20 20 |ivide \\|. |
|00003340| 20 24 3c 2c 3e 2c 3d 3d | 2c 3c 3d 2c 3e 3d 24 20 | $<,>,==|,<=,>=$ |
|00003350| 26 20 6c 65 73 73 2c 20 | 67 72 65 61 74 65 72 2c |& less, |greater,|
|00003360| 20 65 71 75 61 6c 2c 20 | 6c 65 73 73 2f 67 72 65 | equal, |less/gre|
|00003370| 61 74 65 72 20 6f 72 20 | 65 71 75 61 6c 20 5c 5c |ater or |equal \\|
|00003380| 0a 20 20 20 20 20 20 5c | 65 6e 64 7b 74 61 62 75 |. \|end{tabu|
|00003390| 6c 61 72 7d 0a 20 20 20 | 20 5c 65 6e 64 7b 63 65 |lar}. | \end{ce|
|000033a0| 6e 74 65 72 7d 20 20 20 | 20 20 20 20 20 20 20 0a |nter} | .|
|000033b0| 20 20 20 20 54 68 65 20 | 67 65 6e 65 72 61 6c 20 | The |general |
|000033c0| 66 6f 72 6d 20 6f 66 20 | 65 78 70 72 65 73 73 69 |form of |expressi|
|000033d0| 6f 6e 3a 0a 20 20 20 20 | 5c 61 73 74 65 70 7b 28 |on:. |\astep{(|
|000033e0| 28 41 20 5c 65 6d 70 68 | 7b 6f 70 65 72 61 74 69 |(A \emph|{operati|
|000033f0| 6f 6e 7d 20 42 29 20 5c | 7b 5c 65 6d 70 68 7b 6f |on} B) \|{\emph{o|
|00003400| 70 65 72 61 74 69 6f 6e | 7d 20 43 5c 7d 29 7d 0a |peration|} C\})}.|
|00003410| 20 20 20 20 77 68 65 72 | 65 20 5c 61 69 73 74 65 | wher|e \aiste|
|00003420| 70 7b 41 2c 42 7d 20 61 | 6e 64 20 5c 61 69 73 74 |p{A,B} a|nd \aist|
|00003430| 65 70 7b 43 7d 20 6d 61 | 79 20 62 65 20 65 78 70 |ep{C} ma|y be exp|
|00003440| 72 65 73 73 69 6f 6e 73 | 20 61 6c 73 6f 2e 0a 0a |ressions| also...|
|00003450| 0a 5c 73 65 63 74 69 6f | 6e 7b 50 72 65 70 72 6f |.\sectio|n{Prepro|
|00003460| 63 65 73 73 6f 72 7d 0a | 5c 6c 61 62 65 6c 7b 73 |cessor}.|\label{s|
|00003470| 65 63 2d 70 72 65 70 72 | 6f 63 7d 0a 0a 0a 20 20 |ec-prepr|oc}... |
|00003480| 5c 73 75 62 73 65 63 74 | 69 6f 6e 7b 44 69 72 65 |\subsect|ion{Dire|
|00003490| 63 74 69 76 65 73 7d 0a | 0a 20 20 20 20 5c 41 56 |ctives}.|. \AV|
|000034a0| 41 20 70 72 6f 76 69 64 | 65 73 20 43 20 6c 69 6b |A provid|es C lik|
|000034b0| 65 20 70 72 65 70 72 6f | 63 65 73 73 6f 72 2e 20 |e prepro|cessor. |
|000034c0| 50 72 65 70 72 6f 63 65 | 73 73 6f 72 20 64 69 72 |Preproce|ssor dir|
|000034d0| 65 63 74 69 76 65 20 73 | 74 61 72 74 73 20 77 69 |ective s|tarts wi|
|000034e0| 74 68 0a 20 20 20 20 24 | 5c 73 68 61 72 70 24 20 |th. $|\sharp$ |
|000034f0| 63 68 61 72 61 63 74 65 | 72 20 66 6f 6c 6c 6f 77 |characte|r follow|
|00003500| 65 64 20 62 79 20 61 20 | 63 6f 6d 6d 61 6e 64 2e |ed by a |command.|
|00003510| 20 54 68 65 20 74 61 62 | 6c 65 20 62 65 6c 6f 77 | The tab|le below|
|00003520| 20 6c 69 73 74 73 20 74 | 68 65 0a 20 20 20 20 73 | lists t|he. s|
|00003530| 75 70 70 6f 72 74 65 64 | 20 64 69 72 65 63 74 69 |upported| directi|
|00003540| 76 65 73 3a 0a 20 20 20 | 20 0a 20 20 20 20 5c 62 |ves:. | . \b|
|00003550| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 20 20 20 |egin{cen|ter}. |
|00003560| 20 20 20 5c 62 65 67 69 | 6e 7b 74 61 62 75 6c 61 | \begi|n{tabula|
|00003570| 72 7d 7b 7c 6c 7c 6c 7c | 7d 0a 20 20 20 20 20 20 |r}{|l|l||}. |
|00003580| 20 20 5c 68 6c 69 6e 65 | 0a 20 20 20 20 20 20 20 | \hline|. |
|00003590| 20 7b 5c 62 66 20 64 69 | 72 65 63 74 69 76 65 7d | {\bf di|rective}|
|000035a0| 20 26 20 7b 5c 62 66 20 | 6d 65 61 6e 69 6e 67 7d | & {\bf |meaning}|
|000035b0| 20 5c 5c 0a 20 20 20 20 | 20 20 20 20 5c 68 6c 69 | \\. | \hli|
|000035c0| 6e 65 20 5c 68 6c 69 6e | 65 0a 20 20 20 20 20 20 |ne \hlin|e. |
|000035d0| 20 20 0a 20 20 20 20 20 | 20 20 20 24 5c 73 68 61 | . | $\sha|
|000035e0| 72 70 24 61 72 63 68 20 | 5c 65 6d 70 68 7b 74 61 |rp$arch |\emph{ta|
|000035f0| 72 67 65 74 5c 5f 64 65 | 76 69 63 65 7d 20 26 20 |rget\_de|vice} & |
|00003600| 44 65 66 69 6e 65 73 20 | 74 61 72 67 65 74 20 64 |Defines |target d|
|00003610| 65 76 69 63 65 2e 20 5c | 5c 0a 20 20 20 20 20 20 |evice. \|\. |
|00003620| 20 20 5c 68 6c 69 6e 65 | 20 20 20 20 20 20 20 20 | \hline| |
|00003630| 20 20 20 20 20 20 20 20 | 0a 0a 20 20 20 20 20 20 | |.. |
|00003640| 20 20 24 5c 73 68 61 72 | 70 24 69 6e 63 6c 75 64 | $\shar|p$includ|
|00003650| 65 20 22 5c 65 6d 70 68 | 7b 66 69 6c 65 6e 61 6d |e "\emph|{filenam|
|00003660| 65 7d 22 20 0a 20 20 20 | 20 20 20 20 20 20 20 26 |e}" . | &|
|00003670| 20 49 6e 63 6c 75 64 65 | 73 20 5c 65 6d 70 68 7b | Include|s \emph{|
|00003680| 66 69 6c 65 6e 61 6d 65 | 7d 20 74 6f 20 74 68 65 |filename|} to the|
|00003690| 20 63 75 72 72 65 6e 74 | 20 73 6f 75 72 63 65 2e | current| source.|
|000036a0| 5c 5c 0a 20 20 20 20 20 | 20 20 20 5c 68 6c 69 6e |\\. | \hlin|
|000036b0| 65 0a 20 20 20 20 20 20 | 20 20 0a 20 20 20 20 20 |e. | . |
|000036c0| 20 20 20 24 5c 73 68 61 | 72 70 24 61 64 64 64 69 | $\sha|rp$adddi|
|000036d0| 72 20 22 5c 65 6d 70 68 | 7b 66 69 6c 65 6e 61 6d |r "\emph|{filenam|
|000036e0| 65 7d 22 20 0a 20 20 20 | 20 20 20 20 20 20 20 26 |e}" . | &|
|000036f0| 20 41 64 64 73 20 61 6c | 74 65 72 6e 61 74 65 20 | Adds al|ternate |
|00003700| 69 6e 63 6c 75 64 65 20 | 64 69 72 65 63 74 6f 72 |include |director|
|00003710| 79 20 74 6f 20 74 68 65 | 20 6c 69 73 74 2e 20 5c |y to the| list. \|
|00003720| 5c 20 20 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 |\ | . |
|00003730| 20 20 20 20 5c 68 6c 69 | 6e 65 0a 20 20 20 20 20 | \hli|ne. |
|00003740| 20 20 20 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 | | . |
|00003750| 20 20 20 20 24 5c 73 68 | 61 72 70 24 64 65 66 69 | $\sh|arp$defi|
|00003760| 6e 65 20 2e 2e 2e 20 0a | 20 20 20 20 20 20 20 20 |ne ... .| |
|00003770| 20 20 26 20 44 65 66 69 | 6e 65 73 20 6d 61 63 72 | & Defi|nes macr|
|00003780| 6f 2e 20 5c 5c 0a 20 20 | 20 20 20 20 20 20 5c 68 |o. \\. | \h|
|00003790| 6c 69 6e 65 0a 0a 20 20 | 20 20 20 20 20 20 24 5c |line.. | $\|
|000037a0| 73 68 61 72 70 24 75 6e | 64 65 66 69 6e 65 20 5c |sharp$un|define \|
|000037b0| 65 6d 70 68 7b 6d 61 63 | 72 6f 5c 5f 6e 6d 7d 0a |emph{mac|ro\_nm}.|
|000037c0| 20 20 20 20 20 20 20 20 | 20 20 26 20 55 6e 64 65 | | & Unde|
|000037d0| 66 69 6e 65 73 20 6d 61 | 63 72 6f 20 5c 65 6d 70 |fines ma|cro \emp|
|000037e0| 68 7b 6d 61 63 72 6f 5c | 5f 6e 6d 7d 2e 20 5c 5c |h{macro\|_nm}. \\|
|000037f0| 0a 20 20 20 20 20 20 20 | 20 5c 68 6c 69 6e 65 0a |. | \hline.|
|00003800| 20 20 20 20 20 20 20 20 | 0a 20 20 20 20 20 20 20 | |. |
|00003810| 20 24 5c 73 68 61 72 70 | 24 69 66 64 65 66 20 5c | $\sharp|$ifdef \|
|00003820| 65 6d 70 68 7b 6d 61 63 | 72 6f 5c 5f 6e 61 6d 65 |emph{mac|ro\_name|
|00003830| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 26 20 49 66 |}. | & If|
|00003840| 20 6d 61 63 72 6f 20 5c | 65 6d 70 68 7b 6d 61 63 | macro \|emph{mac|
|00003850| 72 6f 5c 5f 6e 61 6d 65 | 7d 20 69 73 20 64 65 66 |ro\_name|} is def|
|00003860| 69 6e 65 64 2c 20 65 6e | 74 65 72 2e 5c 5c 0a 20 |ined, en|ter.\\. |
|00003870| 20 20 20 20 20 20 20 5c | 68 6c 69 6e 65 0a 20 20 | \|hline. |
|00003880| 20 20 20 20 20 20 0a 20 | 20 20 20 20 20 20 20 24 | . | $|
|00003890| 5c 73 68 61 72 70 24 69 | 66 20 5c 65 6d 70 68 7b |\sharp$i|f \emph{|
|000038a0| 65 78 70 72 65 73 73 69 | 6f 6e 7d 0a 20 20 20 20 |expressi|on}. |
|000038b0| 20 20 20 20 20 20 26 20 | 49 66 20 5c 65 6d 70 68 | & |If \emph|
|000038c0| 7b 65 78 70 72 65 73 73 | 69 6f 6e 7d 20 69 73 20 |{express|ion} is |
|000038d0| 74 72 75 65 2c 20 65 6e | 74 65 72 2e 5c 5c 0a 20 |true, en|ter.\\. |
|000038e0| 20 20 20 20 20 20 20 5c | 68 6c 69 6e 65 20 20 20 | \|hline |
|000038f0| 20 20 20 20 20 0a 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00003900| 0a 20 20 20 20 20 20 20 | 20 24 5c 73 68 61 72 70 |. | $\sharp|
|00003910| 24 65 6c 73 65 0a 20 20 | 20 20 20 20 20 20 20 20 |$else. | |
|00003920| 26 20 5c 61 69 73 74 65 | 70 7b 24 5c 73 68 61 72 |& \aiste|p{$\shar|
|00003930| 70 24 69 66 64 65 66 20 | 5c 65 6d 70 68 7b 6d 61 |p$ifdef |\emph{ma|
|00003940| 63 72 6f 5c 5f 6e 61 6d | 65 7d 20 2e 2e 2e 20 24 |cro\_nam|e} ... $|
|00003950| 5c 73 68 61 72 70 24 65 | 6c 73 65 20 2e 2e 2e 20 |\sharp$e|lse ... |
|00003960| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 |. | $|
|00003970| 5c 73 68 61 72 70 24 65 | 6e 64 69 66 7d 2e 20 5c |\sharp$e|ndif}. \|
|00003980| 5c 0a 20 20 20 20 20 20 | 20 20 5c 68 6c 69 6e 65 |\. | \hline|
|00003990| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000039a0| 20 20 20 20 20 20 20 20 | 20 0a 20 20 20 20 20 20 | | . |
|000039b0| 20 20 24 5c 73 68 61 72 | 70 24 65 72 72 6f 72 20 | $\shar|p$error |
|000039c0| 5c 65 6d 70 68 7b 6d 65 | 73 73 61 67 65 7d 0a 20 |\emph{me|ssage}. |
|000039d0| 20 20 20 20 20 20 20 20 | 20 26 20 47 65 6e 65 72 | | & Gener|
|000039e0| 61 74 65 73 20 65 72 72 | 6f 72 20 61 6e 64 20 72 |ates err|or and r|
|000039f0| 65 70 6f 72 74 20 6d 65 | 73 73 61 67 65 2e 20 5c |eport me|ssage. \|
|00003a00| 5c 0a 20 20 20 20 20 20 | 20 20 5c 68 6c 69 6e 65 |\. | \hline|
|00003a10| 20 20 20 20 20 20 20 20 | 20 20 0a 0a 20 20 20 20 | | .. |
|00003a20| 20 20 20 20 24 5c 73 68 | 61 72 70 24 70 72 69 6e | $\sh|arp$prin|
|00003a30| 74 20 5c 65 6d 70 68 7b | 6d 65 73 73 61 67 65 7d |t \emph{|message}|
|00003a40| 0a 20 20 20 20 20 20 20 | 20 20 20 26 20 50 72 69 |. | & Pri|
|00003a50| 6e 74 73 20 69 6e 66 6f | 20 6d 65 73 73 61 67 65 |nts info| message|
|00003a60| 2e 20 5c 5c 0a 20 20 20 | 20 20 20 20 20 5c 68 6c |. \\. | \hl|
|00003a70| 69 6e 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ine. | |
|00003a80| 20 20 20 20 0a 20 20 20 | 20 20 20 5c 65 6e 64 7b | . | \end{|
|00003a90| 74 61 62 75 6c 61 72 7d | 0a 20 20 20 20 5c 65 6e |tabular}|. \en|
|00003aa0| 64 7b 63 65 6e 74 65 72 | 7d 0a 20 20 20 20 0a 20 |d{center|}. . |
|00003ab0| 20 20 20 0a 20 20 20 20 | 5c 73 75 62 73 75 62 73 | . |\subsubs|
|00003ac0| 65 63 74 69 6f 6e 7b 44 | 69 72 65 63 74 69 76 65 |ection{D|irective|
|00003ad0| 20 24 5c 73 68 61 72 70 | 24 61 72 63 68 20 5c 65 | $\sharp|$arch \e|
|00003ae0| 6d 70 68 7b 74 61 72 67 | 65 74 5c 5f 64 65 76 69 |mph{targ|et\_devi|
|00003af0| 63 65 7d 7d 0a 20 20 20 | 20 20 20 20 20 0a 20 20 |ce}}. | . |
|00003b00| 20 20 20 20 44 65 66 69 | 6e 65 73 20 74 61 72 67 | Defi|nes targ|
|00003b10| 65 74 20 64 65 76 69 63 | 65 2e 0a 20 20 20 20 20 |et devic|e.. |
|00003b20| 20 54 68 69 73 20 64 69 | 72 65 63 74 69 76 65 20 | This di|rective |
|00003b30| 64 65 66 69 6e 65 73 20 | 6d 61 63 72 6f 20 5c 65 |defines |macro \e|
|00003b40| 6d 70 68 7b 74 61 72 67 | 65 74 5c 5f 64 65 76 69 |mph{targ|et\_devi|
|00003b50| 63 65 7d 20 61 6e 64 0a | 20 20 20 20 20 20 69 6e |ce} and.| in|
|00003b60| 63 6c 75 64 65 73 20 74 | 68 65 20 66 69 6c 65 20 |cludes t|he file |
|00003b70| 5c 65 6d 70 68 7b 2e 2e | 2f 75 54 6f 6f 6c 73 2f |\emph{..|/uTools/|
|00003b80| 61 76 61 2f 61 72 63 68 | 2e 69 6e 63 7d 2e 0a 20 |ava/arch|.inc}.. |
|00003b90| 20 20 20 20 20 46 69 6c | 65 20 5c 65 6d 70 68 7b | Fil|e \emph{|
|00003ba0| 61 72 63 68 2e 69 6e 63 | 7d 20 64 65 63 6c 61 72 |arch.inc|} declar|
|00003bb0| 65 73 20 6d 65 6d 6f 72 | 79 20 6d 6f 64 65 6c 2c |es memor|y model,|
|00003bc0| 20 61 63 74 75 61 6c 20 | 64 65 76 69 63 65 2c 0a | actual |device,.|
|00003bd0| 20 20 20 20 20 20 6d 65 | 6d 6f 72 79 20 6d 61 70 | me|mory map|
|00003be0| 70 65 64 20 49 2f 4f 73 | 2c 20 2e 2e 2e 65 74 63 |ped I/Os|, ...etc|
|00003bf0| 2e 20 53 65 65 20 63 6f | 6e 74 65 6e 74 20 6f 66 |. See co|ntent of|
|00003c00| 20 74 68 65 0a 20 20 20 | 20 20 20 5c 65 6d 70 68 | the. | \emph|
|00003c10| 7b 61 72 63 68 2e 69 6e | 63 7d 20 66 6f 72 20 64 |{arch.in|c} for d|
|00003c20| 65 74 61 69 6c 73 2e 0a | 20 20 20 20 20 20 5c 62 |etails..| \b|
|00003c30| 65 67 69 6e 7b 65 78 61 | 6d 70 6c 65 7d 0a 20 20 |egin{exa|mple}. |
|00003c40| 20 20 20 20 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 | \beg|in{verba|
|00003c50| 74 69 6d 7d 0a 20 20 20 | 20 20 20 0a 20 20 20 20 |tim}. | . |
|00003c60| 20 20 2f 2a 20 73 65 74 | 20 64 65 76 69 63 65 20 | /* set| device |
|00003c70| 2a 2f 0a 20 20 20 20 20 | 20 23 61 72 63 68 20 41 |*/. | #arch A|
|00003c80| 54 39 30 53 31 32 30 30 | 0a 20 20 20 20 20 20 5c |T90S1200|. \|
|00003c90| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |end{verb|atim}. |
|00003ca0| 20 20 20 20 5c 65 6e 64 | 7b 65 78 61 6d 70 6c 65 | \end|{example|
|00003cb0| 7d 0a 20 20 20 20 20 20 | 54 61 72 67 65 74 20 64 |}. |Target d|
|00003cc0| 65 76 69 63 65 20 63 61 | 6e 20 62 65 20 61 6c 73 |evice ca|n be als|
|00003cd0| 6f 20 64 65 63 6c 61 72 | 65 64 20 62 79 20 74 68 |o declar|ed by th|
|00003ce0| 65 20 2d 41 20 73 77 69 | 74 63 68 2e 20 20 20 20 |e -A swi|tch. |
|00003cf0| 20 20 0a 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 | . | . |
|00003d00| 20 20 20 20 0a 20 20 20 | 20 5c 73 75 62 73 75 62 | . | \subsub|
|00003d10| 73 65 63 74 69 6f 6e 7b | 44 69 72 65 63 74 69 76 |section{|Directiv|
|00003d20| 65 20 24 5c 73 68 61 72 | 70 24 69 6e 63 6c 75 64 |e $\shar|p$includ|
|00003d30| 65 20 22 5c 65 6d 70 68 | 7b 66 69 6c 65 6e 61 6d |e "\emph|{filenam|
|00003d40| 65 7d 22 7d 0a 20 20 20 | 20 0a 20 20 20 20 20 20 |e}"}. | . |
|00003d50| 49 6e 63 6c 75 64 65 73 | 20 5c 65 6d 70 68 7b 66 |Includes| \emph{f|
|00003d60| 69 6c 65 6e 61 6d 65 7d | 20 74 6f 20 74 68 65 20 |ilename}| to the |
|00003d70| 63 75 72 72 65 6e 74 20 | 73 6f 75 72 63 65 2e 0a |current |source..|
|00003d80| 20 20 20 20 20 20 54 68 | 65 20 66 69 6c 65 20 73 | Th|e file s|
|00003d90| 70 65 63 69 66 69 65 64 | 20 69 73 20 66 69 72 73 |pecified| is firs|
|00003da0| 74 20 73 65 61 72 63 68 | 65 64 20 69 6e 20 74 68 |t search|ed in th|
|00003db0| 65 20 63 75 72 72 65 6e | 74 0a 20 20 20 20 20 20 |e curren|t. |
|00003dc0| 64 69 72 65 63 74 6f 72 | 79 20 61 6e 64 20 69 66 |director|y and if|
|00003dd0| 20 69 74 20 69 73 20 6e | 6f 74 20 66 6f 75 6e 64 | it is n|ot found|
|00003de0| 2c 20 5c 41 56 41 20 63 | 6f 6e 74 69 6e 75 65 73 |, \AVA c|ontinues|
|00003df0| 0a 20 20 20 20 20 20 73 | 65 61 72 63 68 69 6e 67 |. s|earching|
|00003e00| 20 69 6e 20 74 68 65 20 | 61 6c 74 65 72 6e 61 74 | in the |alternat|
|00003e10| 69 76 65 20 64 69 72 65 | 63 74 6f 72 69 65 73 20 |ive dire|ctories |
|00003e20| 61 73 20 73 70 65 63 69 | 66 69 65 64 0a 20 20 20 |as speci|fied. |
|00003e30| 20 20 20 62 79 20 74 68 | 65 20 2d 49 5c 65 6d 70 | by th|e -I\emp|
|00003e40| 68 7b 64 69 72 65 63 74 | 6f 72 79 7d 20 6f 70 74 |h{direct|ory} opt|
|00003e50| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 63 6f 6d 6d 61 |ion on t|he comma|
|00003e60| 6e 64 20 6c 69 6e 65 0a | 20 20 20 20 20 20 6f 72 |nd line.| or|
|00003e70| 20 62 79 20 74 68 65 20 | 24 5c 73 68 61 72 70 24 | by the |$\sharp$|
|00003e80| 61 64 64 64 69 72 20 22 | 5c 65 6d 70 68 7b 66 69 |adddir "|\emph{fi|
|00003e90| 6c 65 6e 61 6d 65 7d 22 | 20 0a 20 20 20 20 20 20 |lename}"| . |
|00003ea0| 64 69 72 65 63 74 69 76 | 65 20 69 6e 20 74 68 65 |directiv|e in the|
|00003eb0| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 2e 0a 20 20 | source |code.. |
|00003ec0| 20 20 20 5c 62 65 67 69 | 6e 7b 65 78 61 6d 70 6c | \begi|n{exampl|
|00003ed0| 65 7d 0a 20 20 20 20 20 | 20 5c 62 65 67 69 6e 7b |e}. | \begin{|
|00003ee0| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 20 20 |verbatim|}. |
|00003ef0| 0a 20 20 20 20 20 20 2f | 2a 20 64 65 66 69 6e 65 |. /|* define|
|00003f00| 20 6d 6f 64 65 6c 20 2a | 2f 0a 20 20 20 20 20 20 | model *|/. |
|00003f10| 23 61 72 63 68 20 41 54 | 39 30 53 31 32 30 30 0a |#arch AT|90S1200.|
|00003f20| 20 20 20 20 20 20 0a 20 | 20 20 20 20 20 2f 2a 20 | . | /* |
|00003f30| 0a 20 20 20 20 20 20 20 | 20 20 49 6e 63 6c 75 64 |. | Includ|
|00003f40| 65 20 73 74 61 6e 64 61 | 72 64 20 62 69 74 20 64 |e standa|rd bit d|
|00003f50| 65 66 69 6e 69 74 69 6f | 6e 73 20 61 63 63 6f 72 |efinitio|ns accor|
|00003f60| 64 69 6e 67 20 74 6f 20 | 74 68 65 0a 20 20 20 20 |ding to |the. |
|00003f70| 20 20 20 20 20 73 65 6c | 65 63 74 65 64 20 64 65 | sel|ected de|
|00003f80| 76 69 63 65 2e 20 0a 20 | 20 20 20 20 20 2a 2f 0a |vice. . | */.|
|00003f90| 20 20 20 20 20 20 23 69 | 6e 63 6c 75 64 65 20 22 | #i|nclude "|
|00003fa0| 61 76 72 2e 69 6e 63 22 | 0a 20 20 20 20 20 20 5c |avr.inc"|. \|
|00003fb0| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |end{verb|atim}. |
|00003fc0| 20 20 20 20 5c 65 6e 64 | 7b 65 78 61 6d 70 6c 65 | \end|{example|
|00003fd0| 7d 20 20 20 20 20 20 0a | 20 20 20 20 20 20 20 0a |} .| .|
|00003fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 20 20 20 | | . |
|00003ff0| 20 5c 73 75 62 73 75 62 | 73 65 63 74 69 6f 6e 7b | \subsub|section{|
|00004000| 44 69 72 65 63 74 69 76 | 65 20 24 5c 73 68 61 72 |Directiv|e $\shar|
|00004010| 70 24 61 64 64 64 69 72 | 20 22 5c 65 6d 70 68 7b |p$adddir| "\emph{|
|00004020| 66 69 6c 65 6e 61 6d 65 | 7d 22 7d 0a 20 20 20 20 |filename|}"}. |
|00004030| 20 20 41 64 64 73 20 61 | 6c 74 65 72 6e 61 74 65 | Adds a|lternate|
|00004040| 20 69 6e 63 6c 75 64 65 | 20 64 69 72 65 63 74 6f | include| directo|
|00004050| 72 79 20 74 6f 20 74 68 | 65 20 73 65 61 72 63 68 |ry to th|e search|
|00004060| 20 6c 69 73 74 0a 20 20 | 20 20 20 20 75 73 65 64 | list. | used|
|00004070| 20 62 79 20 74 68 65 20 | 24 5c 73 68 61 72 70 24 | by the |$\sharp$|
|00004080| 69 6e 63 6c 75 64 65 20 | 64 69 72 65 63 74 69 76 |include |directiv|
|00004090| 65 2e 20 54 68 69 73 20 | 64 69 72 65 63 74 69 76 |e. This |directiv|
|000040a0| 65 0a 20 20 20 20 20 20 | 69 73 20 6d 6f 73 74 6c |e. |is mostl|
|000040b0| 79 20 75 73 65 64 20 62 | 79 20 74 68 65 20 54 61 |y used b|y the Ta|
|000040c0| 72 67 65 74 20 44 65 66 | 69 6e 69 74 69 6f 6e 20 |rget Def|inition |
|000040d0| 46 69 6c 65 2e 20 20 20 | 20 20 20 0a 20 20 20 20 |File. | . |
|000040e0| 20 20 5c 62 65 67 69 6e | 7b 65 78 61 6d 70 6c 65 | \begin|{example|
|000040f0| 7d 0a 20 20 20 20 20 20 | 5c 62 65 67 69 6e 7b 76 |}. |\begin{v|
|00004100| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 20 20 0a |erbatim}|. .|
|00004110| 20 20 20 20 20 20 2f 2a | 20 74 61 72 67 65 74 2e | /*| target.|
|00004120| 69 6e 63 20 2a 2f 0a 20 | 20 20 20 20 20 0a 20 20 |inc */. | . |
|00004130| 20 20 20 20 2f 2a 20 53 | 65 74 20 61 64 64 69 74 | /* S|et addit|
|00004140| 69 6f 6e 61 6c 20 69 6e | 63 6c 75 64 65 20 64 69 |ional in|clude di|
|00004150| 72 65 63 74 6f 72 69 65 | 73 20 2e 2e 2e 20 2a 2f |rectorie|s ... */|
|00004160| 0a 20 20 20 20 20 20 23 | 61 64 64 64 69 72 20 22 |. #|adddir "|
|00004170| 2e 2e 2f 63 73 79 73 2f | 69 6e 63 6c 75 64 65 2f |../csys/|include/|
|00004180| 61 73 6d 22 0a 20 20 20 | 20 20 20 23 61 64 64 64 |asm". | #addd|
|00004190| 69 72 20 22 2e 2e 2f 63 | 6f 6d 6d 6f 6e 2f 69 6e |ir "../c|ommon/in|
|000041a0| 63 6c 75 64 65 2f 22 0a | 20 20 20 20 20 20 5c 65 |clude/".| \e|
|000041b0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 20 20 20 |nd{verba|tim}. |
|000041c0| 20 20 20 5c 65 6e 64 7b | 65 78 61 6d 70 6c 65 7d | \end{|example}|
|000041d0| 20 20 20 20 20 20 0a 20 | 20 20 20 20 20 0a 20 20 | . | . |
|000041e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 20 | | . |
|000041f0| 20 20 20 5c 73 75 62 73 | 75 62 73 65 63 74 69 6f | \subs|ubsectio|
|00004200| 6e 7b 44 69 72 65 63 74 | 69 76 65 20 24 5c 73 68 |n{Direct|ive $\sh|
|00004210| 61 72 70 24 64 65 66 69 | 6e 65 20 5c 65 6d 70 68 |arp$defi|ne \emph|
|00004220| 7b 6d 61 63 72 6f 5c 5f | 6e 6d 7d 7d 0a 20 20 20 |{macro\_|nm}}. |
|00004230| 20 20 20 44 65 66 69 6e | 65 73 20 6d 61 63 72 6f | Defin|es macro|
|00004240| 20 77 69 74 68 20 6e 61 | 6d 65 20 5c 65 6d 70 68 | with na|me \emph|
|00004250| 7b 6d 61 63 72 6f 5c 5f | 6e 6d 7d 2e 20 0a 20 20 |{macro\_|nm}. . |
|00004260| 20 20 20 20 53 69 6e 63 | 65 20 6d 61 63 72 6f 73 | Sinc|e macros|
|00004270| 20 61 72 65 20 61 20 6c | 69 74 74 6c 65 20 62 69 | are a l|ittle bi|
|00004280| 74 20 65 78 74 65 6e 64 | 65 64 0a 20 20 20 20 20 |t extend|ed. |
|00004290| 20 74 68 65 79 20 61 72 | 65 20 65 78 70 6c 61 69 | they ar|e explai|
|000042a0| 6e 65 64 20 69 6e 20 74 | 68 65 20 73 65 70 61 72 |ned in t|he separ|
|000042b0| 61 74 65 20 73 65 63 74 | 69 6f 6e 20 5c 72 65 66 |ate sect|ion \ref|
|000042c0| 7b 73 65 63 2d 6d 61 63 | 72 6f 7d 2e 0a 20 20 20 |{sec-mac|ro}.. |
|000042d0| 20 20 20 53 65 65 20 65 | 78 61 6d 70 6c 65 20 5c | See e|xample \|
|000042e0| 72 65 66 7b 65 78 2d 69 | 66 62 31 7d 20 61 6e 64 |ref{ex-i|fb1} and|
|000042f0| 20 5c 72 65 66 7b 65 78 | 2d 69 66 62 32 7d 2e 0a | \ref{ex|-ifb2}..|
|00004300| 0a 20 20 20 20 5c 73 75 | 62 73 75 62 73 65 63 74 |. \su|bsubsect|
|00004310| 69 6f 6e 7b 44 69 72 65 | 63 74 69 76 65 20 24 5c |ion{Dire|ctive $\|
|00004320| 73 68 61 72 70 24 75 6e | 64 65 66 69 6e 65 20 5c |sharp$un|define \|
|00004330| 65 6d 70 68 7b 6d 61 63 | 72 6f 5c 5f 6e 6d 7d 7d |emph{mac|ro\_nm}}|
|00004340| 0a 20 20 20 20 20 20 55 | 6e 64 65 66 69 6e 65 73 |. U|ndefines|
|00004350| 20 6d 61 63 72 6f 20 5c | 65 6d 70 68 7b 6d 61 63 | macro \|emph{mac|
|00004360| 72 6f 5c 5f 6e 6d 7d 2e | 20 20 20 20 20 20 0a 20 |ro\_nm}.| . |
|00004370| 20 20 20 20 20 53 65 65 | 20 65 78 61 6d 70 6c 65 | See| example|
|00004380| 20 5c 72 65 66 7b 65 78 | 2d 69 66 62 31 7d 20 61 | \ref{ex|-ifb1} a|
|00004390| 6e 64 20 5c 72 65 66 7b | 65 78 2d 69 66 62 32 7d |nd \ref{|ex-ifb2}|
|000043a0| 2e 0a 20 20 20 20 20 20 | 20 20 0a 20 20 20 20 5c |.. | . \|
|000043b0| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 7b 44 69 |subsubse|ction{Di|
|000043c0| 72 65 63 74 69 76 65 20 | 24 5c 73 68 61 72 70 24 |rective |$\sharp$|
|000043d0| 69 66 64 65 66 20 5c 65 | 6d 70 68 7b 6d 61 63 72 |ifdef \e|mph{macr|
|000043e0| 6f 5c 5f 6e 61 6d 65 7d | 7d 20 20 0a 20 20 20 20 |o\_name}|} . |
|000043f0| 20 20 45 6e 74 65 72 73 | 20 74 68 65 20 24 5c 73 | Enters| the $\s|
|00004400| 68 61 72 70 24 69 66 64 | 65 66 20 2e 2e 2e 20 24 |harp$ifd|ef ... $|
|00004410| 5c 73 68 61 72 70 24 65 | 6e 64 69 66 20 62 6c 6f |\sharp$e|ndif blo|
|00004420| 63 6b 20 69 66 20 6d 61 | 63 72 6f 0a 20 20 20 20 |ck if ma|cro. |
|00004430| 20 20 5c 65 6d 70 68 7b | 6d 61 63 72 6f 5c 5f 6e | \emph{|macro\_n|
|00004440| 61 6d 65 7d 20 69 73 20 | 64 65 66 69 6e 65 64 2e |ame} is |defined.|
|00004450| 0a 20 20 20 20 20 20 5c | 62 65 67 69 6e 7b 65 78 |. \|begin{ex|
|00004460| 61 6d 70 6c 65 7d 0a 20 | 20 20 20 20 20 5c 6c 61 |ample}. | \la|
|00004470| 62 65 6c 7b 65 78 2d 69 | 66 62 31 7d 0a 20 20 20 |bel{ex-i|fb1}. |
|00004480| 20 20 20 5c 62 65 67 69 | 6e 7b 76 65 72 62 61 74 | \begi|n{verbat|
|00004490| 69 6d 7d 0a 20 20 20 20 | 20 20 0a 20 20 20 20 20 |im}. | . |
|000044a0| 20 23 69 66 64 65 66 20 | 5f 5f 4e 49 43 45 5f 4c | #ifdef |__NICE_L|
|000044b0| 45 56 45 4c 0a 20 20 20 | 20 20 20 23 20 20 64 65 |EVEL. | # de|
|000044c0| 66 69 6e 65 20 5f 5f 4e | 49 43 45 5f 4c 45 56 45 |fine __N|ICE_LEVE|
|000044d0| 4c 09 34 39 0a 20 20 20 | 20 20 20 23 65 6e 64 69 |L.49. | #endi|
|000044e0| 66 0a 20 20 20 20 20 20 | 5c 65 6e 64 7b 76 65 72 |f. |\end{ver|
|000044f0| 62 61 74 69 6d 7d 0a 20 | 20 20 20 20 20 5c 65 6e |batim}. | \en|
|00004500| 64 7b 65 78 61 6d 70 6c | 65 7d 0a 20 20 20 20 20 |d{exampl|e}. |
|00004510| 20 0a 20 20 20 20 5c 73 | 75 62 73 75 62 73 65 63 | . \s|ubsubsec|
|00004520| 74 69 6f 6e 7b 44 69 72 | 65 63 74 69 76 65 20 24 |tion{Dir|ective $|
|00004530| 5c 73 68 61 72 70 24 69 | 66 20 5c 65 6d 70 68 7b |\sharp$i|f \emph{|
|00004540| 65 78 70 72 65 73 73 69 | 6f 6e 7d 7d 0a 20 20 20 |expressi|on}}. |
|00004550| 20 20 20 20 53 69 6d 69 | 6c 61 72 20 74 6f 20 24 | Simi|lar to $|
|00004560| 5c 73 68 61 72 70 24 69 | 66 64 65 66 20 65 78 63 |\sharp$i|fdef exc|
|00004570| 65 70 74 20 74 68 61 74 | 20 65 78 70 72 65 73 73 |ept that| express|
|00004580| 69 6f 6e 20 6d 61 79 0a | 20 20 20 20 20 20 20 62 |ion may.| b|
|00004590| 65 20 67 69 76 65 6e 2e | 20 41 6c 6c 20 75 6e 64 |e given.| All und|
|000045a0| 65 66 69 6e 65 64 20 6d | 61 63 72 6f 73 20 77 69 |efined m|acros wi|
|000045b0| 74 68 69 6e 20 74 68 65 | 20 0a 20 20 20 20 20 20 |thin the| . |
|000045c0| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 61 72 65 20 | express|ion are |
|000045d0| 74 72 65 61 74 65 64 20 | 61 73 20 7a 65 72 6f 73 |treated |as zeros|
|000045e0| 2e 0a 20 20 20 20 20 20 | 5c 62 65 67 69 6e 7b 65 |.. |\begin{e|
|000045f0| 78 61 6d 70 6c 65 7d 0a | 20 20 20 20 20 20 5c 6c |xample}.| \l|
|00004600| 61 62 65 6c 7b 65 78 2d | 69 66 62 32 7d 0a 20 20 |abel{ex-|ifb2}. |
|00004610| 20 20 20 20 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 | \beg|in{verba|
|00004620| 74 69 6d 7d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |tim}. | |
|00004630| 20 0a 20 20 20 20 20 20 | 23 69 66 20 28 5f 5f 4e | . |#if (__N|
|00004640| 49 43 45 5f 4c 45 56 45 | 4c 20 3c 20 34 31 29 7c |ICE_LEVE|L < 41)||
|00004650| 20 28 5f 5f 4e 49 43 45 | 5f 4c 45 56 45 4c 20 3e | (__NICE|_LEVEL >|
|00004660| 20 35 38 29 0a 20 20 20 | 20 20 20 23 20 20 75 6e | 58). | # un|
|00004670| 64 65 66 69 6e 65 20 5f | 5f 4e 49 43 45 5f 4c 45 |define _|_NICE_LE|
|00004680| 56 45 4c 0a 20 20 20 20 | 20 20 23 20 20 64 65 66 |VEL. | # def|
|00004690| 69 6e 65 20 5f 5f 4e 49 | 43 45 5f 4c 45 56 45 4c |ine __NI|CE_LEVEL|
|000046a0| 09 34 39 0a 20 20 20 20 | 20 20 23 65 6e 64 69 66 |.49. | #endif|
|000046b0| 0a 20 20 20 20 20 20 5c | 65 6e 64 7b 76 65 72 62 |. \|end{verb|
|000046c0| 61 74 69 6d 7d 0a 20 20 | 20 20 20 20 5c 65 6e 64 |atim}. | \end|
|000046d0| 7b 65 78 61 6d 70 6c 65 | 7d 0a 20 20 20 20 20 20 |{example|}. |
|000046e0| 0a 20 20 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 |. | . |
|000046f0| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 7b 44 |\subsubs|ection{D|
|00004700| 69 72 65 63 74 69 76 65 | 20 24 5c 73 68 61 72 70 |irective| $\sharp|
|00004710| 24 65 6c 73 65 7d 0a 20 | 20 20 20 20 20 20 45 6c |$else}. | El|
|00004720| 73 65 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 69 |se can b|e used i|
|00004730| 6e 20 63 6f 6e 6a 75 6e | 63 74 69 6f 6e 20 77 69 |n conjun|ction wi|
|00004740| 74 68 20 24 5c 73 68 61 | 72 70 24 69 66 64 65 66 |th $\sha|rp$ifdef|
|00004750| 20 64 69 72 65 63 74 69 | 76 65 2e 0a 20 20 20 20 | directi|ve.. |
|00004760| 20 20 20 47 65 6e 65 72 | 61 6c 20 66 6f 72 6d 20 | Gener|al form |
|00004770| 69 73 3a 0a 20 20 20 20 | 20 20 20 5c 61 69 73 74 |is:. | \aist|
|00004780| 65 70 7b 24 5c 73 68 61 | 72 70 24 69 66 64 65 66 |ep{$\sha|rp$ifdef|
|00004790| 20 5c 65 6d 70 68 7b 6d | 61 63 72 6f 5c 5f 6e 61 | \emph{m|acro\_na|
|000047a0| 6d 65 7d 20 2e 2e 2e 20 | 24 5c 73 68 61 72 70 24 |me} ... |$\sharp$|
|000047b0| 65 6c 73 65 20 2e 2e 2e | 20 0a 20 20 20 20 20 20 |else ...| . |
|000047c0| 20 20 20 24 5c 73 68 61 | 72 70 24 65 6e 64 69 66 | $\sha|rp$endif|
|000047d0| 7d 2e 20 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 |}. | . |
|000047e0| 20 20 5c 62 65 67 69 6e | 7b 65 78 61 6d 70 6c 65 | \begin|{example|
|000047f0| 7d 0a 20 20 20 20 20 20 | 5c 62 65 67 69 6e 7b 76 |}. |\begin{v|
|00004800| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 20 20 0a |erbatim}|. .|
|00004810| 20 20 20 20 20 20 23 69 | 66 64 65 66 20 5f 5f 4e | #i|fdef __N|
|00004820| 49 43 45 5f 4c 45 56 45 | 4c 0a 20 20 20 20 20 20 |ICE_LEVE|L. |
|00004830| 23 20 20 64 65 66 69 6e | 65 20 5f 5f 4e 49 43 45 |# defin|e __NICE|
|00004840| 5f 4c 45 56 45 4c 09 34 | 39 0a 20 20 20 20 20 20 |_LEVEL.4|9. |
|00004850| 23 65 6c 73 65 0a 20 20 | 20 20 20 20 23 20 20 75 |#else. | # u|
|00004860| 6e 64 65 66 69 6e 65 20 | 5f 5f 4e 49 43 45 5f 4c |ndefine |__NICE_L|
|00004870| 45 56 45 4c 0a 20 20 20 | 20 20 20 23 20 20 64 65 |EVEL. | # de|
|00004880| 66 69 6e 65 20 5f 5f 4e | 49 43 45 5f 4c 45 56 45 |fine __N|ICE_LEVE|
|00004890| 4c 09 34 39 0a 20 20 20 | 20 20 20 23 65 6e 64 69 |L.49. | #endi|
|000048a0| 66 0a 20 20 20 20 20 20 | 5c 65 6e 64 7b 76 65 72 |f. |\end{ver|
|000048b0| 62 61 74 69 6d 7d 0a 20 | 20 20 20 20 20 5c 65 6e |batim}. | \en|
|000048c0| 64 7b 65 78 61 6d 70 6c | 65 7d 0a 20 20 20 20 20 |d{exampl|e}. |
|000048d0| 20 20 20 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|000048e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000048f0| 20 20 20 20 20 20 0a 20 | 20 20 20 5c 73 75 62 73 | . | \subs|
|00004900| 75 62 73 65 63 74 69 6f | 6e 7b 44 69 72 65 63 74 |ubsectio|n{Direct|
|00004910| 69 76 65 20 24 5c 73 68 | 61 72 70 24 65 72 72 6f |ive $\sh|arp$erro|
|00004920| 72 20 5c 65 6d 70 68 7b | 6d 65 73 73 61 67 65 7d |r \emph{|message}|
|00004930| 7d 0a 20 20 20 20 20 20 | 20 47 65 6e 65 72 61 74 |}. | Generat|
|00004940| 65 73 20 65 72 72 6f 72 | 20 61 6e 64 20 72 65 70 |es error| and rep|
|00004950| 6f 72 74 20 6d 65 73 73 | 61 67 65 2e 0a 20 20 20 |ort mess|age.. |
|00004960| 20 20 20 5c 62 65 67 69 | 6e 7b 65 78 61 6d 70 6c | \begi|n{exampl|
|00004970| 65 7d 0a 20 20 20 20 20 | 20 5c 62 65 67 69 6e 7b |e}. | \begin{|
|00004980| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 20 20 |verbatim|}. |
|00004990| 0a 20 20 20 20 20 20 2f | 2a 20 0a 20 20 20 20 20 |. /|* . |
|000049a0| 20 20 20 20 55 73 65 20 | 6f 66 20 70 61 72 65 74 | Use |of paret|
|000049b0| 68 6e 65 73 73 20 69 73 | 20 72 65 63 6f 6d 6d 65 |hness is| recomme|
|000049c0| 6e 64 65 64 20 62 65 63 | 61 75 73 65 20 6f 66 20 |nded bec|ause of |
|000049d0| 74 68 65 20 6d 61 63 72 | 6f 0a 20 20 20 20 20 20 |the macr|o. |
|000049e0| 20 20 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 73 2e | repla|cements.|
|000049f0| 20 0a 20 20 20 20 20 20 | 2a 2f 20 20 0a 20 20 20 | . |*/ . |
|00004a00| 20 20 20 23 69 66 6e 64 | 65 66 20 5f 5f 4e 49 43 | #ifnd|ef __NIC|
|00004a10| 45 5f 4c 45 56 45 4c 0a | 20 20 20 20 20 20 23 20 |E_LEVEL.| # |
|00004a20| 20 65 72 72 6f 72 20 22 | 5f 5f 4e 49 43 45 5f 4c | error "|__NICE_L|
|00004a30| 45 56 45 4c 20 69 73 20 | 6e 6f 74 20 64 65 66 69 |EVEL is |not defi|
|00004a40| 6e 65 64 21 22 0a 20 20 | 20 20 20 20 23 65 6e 64 |ned!". | #end|
|00004a50| 69 66 0a 20 20 20 20 20 | 20 5c 65 6e 64 7b 76 65 |if. | \end{ve|
|00004a60| 72 62 61 74 69 6d 7d 0a | 20 20 20 20 20 20 5c 65 |rbatim}.| \e|
|00004a70| 6e 64 7b 65 78 61 6d 70 | 6c 65 7d 0a 20 20 20 20 |nd{examp|le}. |
|00004a80| 20 20 20 0a 0a 20 20 20 | 20 5c 73 75 62 73 75 62 | .. | \subsub|
|00004a90| 73 65 63 74 69 6f 6e 7b | 44 69 72 65 63 74 69 76 |section{|Directiv|
|00004aa0| 65 20 24 5c 73 68 61 72 | 70 24 70 72 69 6e 74 20 |e $\shar|p$print |
|00004ab0| 5c 65 6d 70 68 7b 6d 65 | 73 73 61 67 65 7d 7d 0a |\emph{me|ssage}}.|
|00004ac0| 20 20 20 20 20 20 20 50 | 72 69 6e 74 73 20 69 6e | P|rints in|
|00004ad0| 66 6f 20 6d 65 73 73 61 | 67 65 2e 20 4d 65 73 73 |fo messa|ge. Mess|
|00004ae0| 61 67 65 20 69 73 20 74 | 65 72 6d 69 6e 61 74 65 |age is t|erminate|
|00004af0| 64 20 62 79 20 61 0a 20 | 20 20 20 20 20 20 6e 65 |d by a. | ne|
|00004b00| 77 20 61 20 6c 69 6e 65 | 2e 0a 20 20 20 20 20 20 |w a line|.. |
|00004b10| 5c 62 65 67 69 6e 7b 65 | 78 61 6d 70 6c 65 7d 0a |\begin{e|xample}.|
|00004b20| 20 20 20 20 20 20 5c 62 | 65 67 69 6e 7b 76 65 72 | \b|egin{ver|
|00004b30| 62 61 74 69 6d 7d 0a 20 | 20 20 20 20 20 0a 20 20 |batim}. | . |
|00004b40| 20 20 20 20 2f 2a 20 50 | 72 69 6e 74 73 20 5f 5f | /* P|rints __|
|00004b50| 4e 49 43 45 5f 4c 45 56 | 45 4c 20 74 6f 20 74 68 |NICE_LEV|EL to th|
|00004b60| 65 20 73 74 64 6f 75 74 | 20 61 6e 64 20 6c 6f 67 |e stdout| and log|
|00004b70| 20 66 69 6c 65 20 2a 2f | 0a 20 20 20 20 20 20 23 | file */|. #|
|00004b80| 70 72 69 6e 74 20 22 5f | 5f 4e 49 43 45 5f 4c 45 |print "_|_NICE_LE|
|00004b90| 56 45 4c 20 3d 20 22 20 | 5f 5f 4e 49 43 45 5f 4c |VEL = " |__NICE_L|
|00004ba0| 45 56 45 4c 0a 20 20 20 | 20 20 20 5c 65 6e 64 7b |EVEL. | \end{|
|00004bb0| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 20 20 |verbatim|}. |
|00004bc0| 5c 65 6e 64 7b 65 78 61 | 6d 70 6c 65 7d 0a 20 20 |\end{exa|mple}. |
|00004bd0| 20 20 20 20 20 0a 0a 0a | 20 20 5c 73 75 62 73 65 | ...| \subse|
|00004be0| 63 74 69 6f 6e 7b 41 72 | 63 68 69 74 65 63 74 75 |ction{Ar|chitectu|
|00004bf0| 72 65 20 44 65 66 69 6e | 69 74 69 6f 6e 20 46 69 |re Defin|ition Fi|
|00004c00| 6c 65 7d 0a 20 20 0a 20 | 20 20 20 54 68 65 20 41 |le}. . | The A|
|00004c10| 72 63 68 69 74 65 63 74 | 75 72 65 20 44 65 66 69 |rchitect|ure Defi|
|00004c20| 6e 69 74 69 6f 6e 20 46 | 69 6c 65 20 28 5c 65 6d |nition F|ile (\em|
|00004c30| 70 68 7b 61 72 63 68 2e | 69 6e 63 7d 29 20 69 73 |ph{arch.|inc}) is|
|00004c40| 20 61 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 0a | a part |of the .|
|00004c50| 20 20 20 20 5c 41 56 41 | 20 6c 69 62 72 61 72 79 | \AVA| library|
|00004c60| 2e 20 54 68 69 73 20 66 | 69 6c 65 20 69 6e 63 6c |. This f|ile incl|
|00004c70| 75 64 65 73 20 61 6c 6c | 20 74 68 65 20 69 6e 66 |udes all| the inf|
|00004c80| 6f 72 6d 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |ormation| of the |
|00004c90| 0a 20 20 20 20 73 75 70 | 70 6f 72 74 65 64 20 6d |. sup|ported m|
|00004ca0| 6f 64 65 6c 73 20 61 6e | 64 20 66 61 6d 69 6c 69 |odels an|d famili|
|00004cb0| 65 73 2e 20 0a 20 20 20 | 20 0a 20 20 20 20 54 68 |es. . | . Th|
|00004cc0| 65 20 66 69 6c 65 20 5c | 65 6d 70 68 7b 61 72 63 |e file \|emph{arc|
|00004cd0| 68 2e 69 6e 63 7d 20 69 | 73 20 61 75 74 6f 6d 61 |h.inc} i|s automa|
|00004ce0| 74 69 63 61 6c 6c 79 20 | 69 6e 63 6c 75 64 65 64 |tically |included|
|00004cf0| 20 61 66 74 65 72 20 74 | 68 65 0a 20 20 20 20 24 | after t|he. $|
|00004d00| 5c 73 68 61 72 70 24 61 | 72 63 68 20 70 72 65 70 |\sharp$a|rch prep|
|00004d10| 72 6f 63 65 73 73 6f 72 | 20 64 69 72 65 63 74 69 |rocessor| directi|
|00004d20| 76 65 2e 0a 20 20 20 20 | 5c 6e 6f 74 65 7b 4e 65 |ve.. |\note{Ne|
|00004d30| 76 65 72 20 69 6e 63 6c | 75 64 65 20 6f 72 20 6d |ver incl|ude or m|
|00004d40| 6f 64 69 66 79 20 5c 65 | 6d 70 68 7b 61 72 63 68 |odify \e|mph{arch|
|00004d50| 2e 69 6e 63 7d 20 66 69 | 6c 65 0a 20 20 20 20 20 |.inc} fi|le. |
|00004d60| 20 20 20 20 20 75 6e 6c | 65 73 73 20 61 6c 6c 20 | unl|ess all |
|00004d70| 63 6f 6e 73 65 71 75 65 | 6e 63 65 73 20 61 72 65 |conseque|nces are|
|00004d80| 20 6b 6e 6f 77 6e 2e 7d | 0a 20 20 0a 0a 20 20 5c | known.}|. .. \|
|00004d90| 73 75 62 73 65 63 74 69 | 6f 6e 7b 54 61 72 67 65 |subsecti|on{Targe|
|00004da0| 74 20 44 65 66 69 6e 69 | 74 69 6f 6e 20 46 69 6c |t Defini|tion Fil|
|00004db0| 65 7d 0a 0a 20 20 20 20 | 5c 41 56 41 20 69 73 20 |e}.. |\AVA is |
|00004dc0| 61 20 73 65 67 6d 65 6e | 74 20 6f 72 69 65 6e 74 |a segmen|t orient|
|00004dd0| 65 64 20 61 73 73 65 6d | 62 6c 65 72 2e 20 45 61 |ed assem|bler. Ea|
|00004de0| 63 68 20 70 69 65 63 65 | 20 6f 66 20 63 6f 64 65 |ch piece| of code|
|00004df0| 20 6d 61 79 20 62 65 0a | 20 20 20 20 70 6c 61 63 | may be.| plac|
|00004e00| 65 64 20 69 6e 20 61 6e | 79 20 6b 69 6e 64 20 6f |ed in an|y kind o|
|00004e10| 66 20 73 65 67 6d 65 6e | 74 2e 20 53 75 63 68 20 |f segmen|t. Such |
|00004e20| 61 20 6d 65 63 68 61 6e | 69 73 6d 20 70 72 6f 76 |a mechan|ism prov|
|00004e30| 69 64 65 73 20 6d 61 78 | 69 6d 75 6d 20 63 6f 6e |ides max|imum con|
|00004e40| 74 72 6f 6c 20 0a 20 20 | 20 20 6f 76 65 72 20 74 |trol . | over t|
|00004e50| 68 65 20 63 6f 64 65 20 | 61 6e 64 20 70 72 65 76 |he code |and prev|
|00004e60| 65 6e 74 73 20 66 72 6f | 6d 20 75 6e 64 65 73 69 |ents fro|m undesi|
|00004e70| 72 65 64 20 65 72 72 6f | 72 73 0a 20 20 20 20 28 |red erro|rs. (|
|00004e80| 73 65 65 20 73 65 63 74 | 69 6f 6e 20 5c 72 65 66 |see sect|ion \ref|
|00004e90| 7b 73 65 63 2d 73 65 67 | 6d 65 6e 74 7d 20 66 6f |{sec-seg|ment} fo|
|00004ea0| 72 20 64 65 74 61 69 6c | 65 64 20 65 78 70 6c 61 |r detail|ed expla|
|00004eb0| 6e 61 74 69 6f 6e 20 6f | 6e 20 73 65 67 6d 65 6e |nation o|n segmen|
|00004ec0| 74 73 29 2e 0a 20 20 20 | 20 0a 20 20 20 20 4f 6e |ts).. | . On|
|00004ed0| 65 20 6f 66 20 74 68 65 | 20 6d 65 63 68 61 6e 69 |e of the| mechani|
|00004ee0| 73 6d 20 74 68 61 74 20 | 68 65 6c 70 73 20 74 6f |sm that |helps to|
|00004ef0| 20 6b 65 65 70 20 74 68 | 69 6e 67 73 20 69 6e 20 | keep th|ings in |
|00004f00| 6f 72 64 65 72 20 69 73 | 20 0a 20 20 20 20 74 68 |order is| . th|
|00004f10| 65 20 54 61 72 67 65 74 | 20 44 65 66 69 6e 69 74 |e Target| Definit|
|00004f20| 69 6f 6e 20 46 69 6c 65 | 20 6f 72 20 5c 65 6d 70 |ion File| or \emp|
|00004f30| 68 7b 74 61 72 67 65 74 | 2e 69 6e 63 7d 2e 20 46 |h{target|.inc}. F|
|00004f40| 6f 72 20 6c 61 72 67 65 | 72 0a 20 20 20 20 6d 69 |or large|r. mi|
|00004f50| 63 72 6f 2d 63 6f 6e 74 | 72 6f 6c 6c 65 72 20 73 |cro-cont|roller s|
|00004f60| 79 73 74 65 6d 73 20 77 | 69 74 68 20 6d 65 6d 6f |ystems w|ith memo|
|00004f70| 72 79 20 6d 61 70 70 65 | 64 20 49 2f 4f 73 2c 20 |ry mappe|d I/Os, |
|00004f80| 22 68 75 67 65 22 20 73 | 6f 66 74 77 61 72 65 2c |"huge" s|oftware,|
|00004f90| 0a 20 20 20 20 74 68 65 | 20 5c 65 6d 70 68 7b 74 |. the| \emph{t|
|00004fa0| 61 72 67 65 74 2e 69 6e | 63 7d 20 66 69 6c 65 20 |arget.in|c} file |
|00004fb0| 73 68 6f 75 6c 64 20 70 | 72 6f 76 69 64 65 20 63 |should p|rovide c|
|00004fc0| 6f 6d 70 6c 65 74 65 20 | 68 61 72 64 77 61 72 65 |omplete |hardware|
|00004fd0| 0a 20 20 20 20 64 65 73 | 63 72 69 70 74 69 6f 6e |. des|cription|
|00004fe0| 2e 20 55 73 69 6e 67 20 | 74 68 65 20 2d 54 20 6f |. Using |the -T o|
|00004ff0| 70 74 69 6f 6e 20 69 6e | 20 74 68 65 20 63 6f 6d |ption in| the com|
|00005000| 6d 61 6e 64 20 74 68 65 | 20 5c 65 6d 70 68 7b 74 |mand the| \emph{t|
|00005010| 61 72 67 65 74 2e 69 6e | 63 7d 20 0a 20 20 20 20 |arget.in|c} . |
|00005020| 66 69 6c 65 20 77 69 6c | 6c 20 62 65 20 69 6e 63 |file wil|l be inc|
|00005030| 6c 75 64 65 64 20 74 6f | 20 65 61 63 68 20 73 6f |luded to| each so|
|00005040| 75 72 63 65 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |urce aut|omatical|
|00005050| 6c 79 2e 20 0a 20 20 20 | 20 0a 20 20 20 20 4f 66 |ly. . | . Of|
|00005060| 20 63 6f 75 72 73 65 2c | 20 61 64 64 69 6e 67 20 | course,| adding |
|00005070| 74 68 65 20 6c 69 6e 65 | 20 5c 61 69 73 74 65 70 |the line| \aistep|
|00005080| 7b 24 5c 73 68 61 72 70 | 24 69 6e 63 6c 75 64 65 |{$\sharp|$include|
|00005090| 20 22 74 61 72 67 65 74 | 2e 69 6e 63 22 7d 20 0a | "target|.inc"} .|
|000050a0| 20 20 20 20 74 6f 20 65 | 61 63 68 20 73 6f 75 72 | to e|ach sour|
|000050b0| 63 65 20 68 61 73 20 74 | 68 65 20 73 61 6d 65 20 |ce has t|he same |
|000050c0| 65 66 66 65 63 74 20 62 | 75 74 20 2d 54 20 6f 70 |effect b|ut -T op|
|000050d0| 74 69 6f 6e 0a 20 20 20 | 20 6d 69 67 68 74 20 62 |tion. | might b|
|000050e0| 65 20 75 73 65 64 20 61 | 73 20 61 20 73 68 6f 72 |e used a|s a shor|
|000050f0| 74 63 75 74 2e 0a 20 20 | 20 20 0a 20 20 20 20 4f |tcut.. | . O|
|00005100| 6e 65 20 6f 66 20 74 68 | 65 20 6d 6f 73 74 20 69 |ne of th|e most i|
|00005110| 6d 70 6f 72 74 61 6e 74 | 20 74 68 69 6e 67 73 20 |mportant| things |
|00005120| 74 68 61 74 20 74 68 65 | 20 6c 69 6e 6b 65 72 20 |that the| linker |
|00005130| 73 68 6f 75 6c 64 20 62 | 65 20 69 6e 73 74 72 75 |should b|e instru|
|00005140| 63 74 65 64 0a 20 20 20 | 20 69 73 20 61 62 6f 75 |cted. | is abou|
|00005150| 74 20 6d 65 6d 6f 72 79 | 20 68 6f 6c 65 73 2e 20 |t memory| holes. |
|00005160| 49 66 20 6c 69 6e 6b 65 | 72 20 69 73 20 6e 6f 74 |If linke|r is not|
|00005170| 20 6e 6f 74 69 66 69 65 | 64 20 61 62 6f 75 74 20 | notifie|d about |
|00005180| 74 68 65 6d 2c 20 69 74 | 20 63 61 6e 6e 6f 74 20 |them, it| cannot |
|00005190| 0a 20 20 20 20 61 76 6f | 69 64 20 74 68 65 73 65 |. avo|id these|
|000051a0| 20 68 6f 6c 65 73 20 61 | 6e 64 20 64 61 74 61 20 | holes a|nd data |
|000051b0| 73 65 67 6d 65 6e 74 20 | 7b 5c 62 66 20 6d 61 79 |segment |{\bf may|
|000051c0| 20 62 65 7d 20 69 6d 70 | 72 6f 70 65 72 6c 79 20 | be} imp|roperly |
|000051d0| 70 6c 61 63 65 64 21 0a | 20 20 20 20 50 6c 65 61 |placed!.| Plea|
|000051e0| 73 65 20 73 65 65 20 65 | 78 61 6d 70 6c 65 73 20 |se see e|xamples |
|000051f0| 69 6e 20 74 68 65 20 63 | 68 61 70 74 65 72 20 5c |in the c|hapter \|
|00005200| 72 65 66 7b 73 65 63 2d | 64 65 73 69 67 6e 7d 20 |ref{sec-|design} |
|00005210| 61 6e 64 20 73 65 63 74 | 69 6f 6e 0a 20 20 20 20 |and sect|ion. |
|00005220| 5c 72 65 66 7b 73 65 63 | 2d 73 65 67 6d 65 6e 74 |\ref{sec|-segment|
|00005230| 7d 20 66 6f 72 20 68 65 | 6c 70 20 6f 6e 20 64 65 |} for he|lp on de|
|00005240| 63 6c 61 72 69 6e 67 20 | 74 68 65 20 6d 65 6d 6f |claring |the memo|
|00005250| 72 79 20 68 6f 6c 65 73 | 2e 0a 0a 0a 5c 73 65 63 |ry holes|....\sec|
|00005260| 74 69 6f 6e 7b 53 79 6d | 62 6f 6c 73 7d 0a 5c 6c |tion{Sym|bols}.\l|
|00005270| 61 62 65 6c 7b 73 65 63 | 2d 73 79 6d 62 6f 6c 7d |abel{sec|-symbol}|
|00005280| 0a 20 20 0a 20 20 54 68 | 65 72 65 20 61 72 65 20 |. . Th|ere are |
|00005290| 74 77 6f 20 6b 69 6e 64 | 20 6f 66 20 73 79 6d 62 |two kind| of symb|
|000052a0| 6f 6c 73 3a 0a 20 20 5c | 62 65 67 69 6e 7b 69 74 |ols:. \|begin{it|
|000052b0| 65 6d 69 7a 65 7d 0a 20 | 20 20 20 5c 69 74 65 6d |emize}. | \item|
|000052c0| 20 4d 61 63 72 6f 73 20 | 61 6e 64 0a 20 20 20 20 | Macros |and. |
|000052d0| 5c 69 74 65 6d 20 4c 61 | 62 65 6c 73 0a 20 20 5c |\item La|bels. \|
|000052e0| 65 6e 64 7b 69 74 65 6d | 69 7a 65 7d 0a 20 20 54 |end{item|ize}. T|
|000052f0| 6f 20 6c 61 62 65 6c 20 | 6f 66 66 73 65 74 20 69 |o label |offset i|
|00005300| 73 20 61 73 73 69 67 6e | 65 64 20 61 6e 64 20 6d |s assign|ed and m|
|00005310| 61 63 72 6f 20 63 61 6e | 20 62 65 20 75 73 65 64 |acro can| be used|
|00005320| 20 74 6f 0a 20 20 72 65 | 70 6c 61 63 65 20 65 78 | to. re|place ex|
|00005330| 70 72 65 73 73 69 6f 6e | 73 20 61 6e 64 2f 6f 72 |pression|s and/or|
|00005340| 20 61 73 73 65 6d 62 6c | 65 72 20 63 6f 64 65 2e | assembl|er code.|
|00005350| 0a 20 20 0a 20 20 5c 73 | 75 62 73 65 63 74 69 6f |. . \s|ubsectio|
|00005360| 6e 7b 41 74 74 72 69 62 | 75 74 65 73 7d 0a 20 20 |n{Attrib|utes}. |
|00005370| 0a 20 20 20 20 54 68 65 | 20 70 72 65 73 65 6e 74 |. The| present|
|00005380| 20 73 65 63 74 69 6f 6e | 20 64 65 73 63 72 69 62 | section| describ|
|00005390| 65 20 67 65 6e 65 72 61 | 6c 20 70 72 6f 70 65 72 |e genera|l proper|
|000053a0| 74 69 65 73 20 6f 66 20 | 74 68 65 20 6d 61 63 72 |ties of |the macr|
|000053b0| 6f 73 0a 20 20 20 20 61 | 6e 64 20 6c 61 62 65 6c |os. a|nd label|
|000053c0| 73 2e 20 41 74 74 72 69 | 62 75 74 65 73 20 64 65 |s. Attri|butes de|
|000053d0| 63 6c 61 72 65 20 74 68 | 65 20 64 69 66 66 65 72 |clare th|e differ|
|000053e0| 65 6e 74 20 62 65 68 61 | 76 69 6f 75 72 73 20 6f |ent beha|viours o|
|000053f0| 66 20 74 68 65 0a 20 20 | 20 20 73 79 6d 62 6f 6c |f the. | symbol|
|00005400| 73 20 64 75 72 69 6e 67 | 20 63 6f 6d 70 69 6c 61 |s during| compila|
|00005410| 74 69 6f 6e 20 61 6e 64 | 20 6c 69 6e 6b 61 67 65 |tion and| linkage|
|00005420| 20 70 72 6f 63 65 73 73 | 2e 20 54 68 65 20 61 74 | process|. The at|
|00005430| 74 72 69 62 75 74 65 73 | 0a 20 20 20 20 61 72 65 |tributes|. are|
|00005440| 3a 0a 20 20 20 20 5c 62 | 65 67 69 6e 7b 63 65 6e |:. \b|egin{cen|
|00005450| 74 65 72 7d 0a 20 20 20 | 20 20 20 5c 62 65 67 69 |ter}. | \begi|
|00005460| 6e 7b 74 61 62 75 6c 61 | 72 7d 7b 7c 72 7c 6c 7c |n{tabula|r}{|r|l||
|00005470| 7d 0a 20 20 20 20 20 20 | 20 20 5c 68 6c 69 6e 65 |}. | \hline|
|00005480| 0a 20 20 20 20 20 20 20 | 20 7b 5c 62 66 20 61 74 |. | {\bf at|
|00005490| 74 72 69 62 75 74 65 7d | 20 26 20 7b 5c 62 66 20 |tribute}| & {\bf |
|000054a0| 6d 65 61 6e 69 6e 67 7d | 20 5c 5c 0a 20 20 20 20 |meaning}| \\. |
|000054b0| 20 20 20 20 5c 68 6c 69 | 6e 65 20 5c 68 6c 69 6e | \hli|ne \hlin|
|000054c0| 65 0a 20 20 20 20 20 20 | 20 20 0a 20 20 20 20 20 |e. | . |
|000054d0| 20 20 20 69 6e 74 65 72 | 6e 61 6c 20 26 20 44 65 | inter|nal & De|
|000054e0| 63 6c 61 72 65 73 20 69 | 6e 74 65 72 6e 61 6c 20 |clares i|nternal |
|000054f0| 73 79 6d 62 6f 6c 2e 5c | 5c 0a 20 20 20 20 20 20 |symbol.\|\. |
|00005500| 20 20 20 20 26 20 54 68 | 69 73 20 73 79 6d 62 6f | & Th|is symbo|
|00005510| 6c 20 69 73 20 64 65 63 | 6c 61 72 65 64 20 77 69 |l is dec|lared wi|
|00005520| 74 68 69 6e 20 63 75 72 | 72 65 6e 74 20 6f 62 6a |thin cur|rent obj|
|00005530| 65 63 74 20 66 69 6c 65 | 20 5c 5c 0a 20 20 20 20 |ect file| \\. |
|00005540| 20 20 20 20 20 20 26 20 | 6f 6e 6c 79 20 61 6e 64 | & |only and|
|00005550| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 6c 79 20 69 | is comp|letely i|
|00005560| 6e 76 69 73 69 62 6c 65 | 20 66 72 6f 6d 20 74 68 |nvisible| from th|
|00005570| 65 20 6f 75 74 73 69 64 | 65 2e 20 5c 5c 0a 20 20 |e outsid|e. \\. |
|00005580| 20 20 20 20 20 20 20 20 | 26 20 5c 65 6d 70 68 7b | |& \emph{|
|00005590| 54 68 69 73 20 69 73 20 | 74 68 65 20 61 73 73 65 |This is |the asse|
|000055a0| 6d 62 6c 65 72 20 64 65 | 66 61 75 6c 74 20 61 74 |mbler de|fault at|
|000055b0| 74 72 69 62 75 74 65 2e | 7d 20 5c 5c 0a 20 20 20 |tribute.|} \\. |
|000055c0| 20 20 20 20 20 5c 68 6c | 69 6e 65 0a 20 20 20 20 | \hl|ine. |
|000055d0| 20 20 20 20 0a 20 20 20 | 20 20 20 20 20 70 75 62 | . | pub|
|000055e0| 6c 69 63 20 26 20 43 72 | 65 61 74 65 20 70 75 62 |lic & Cr|eate pub|
|000055f0| 6c 69 63 20 73 79 6d 62 | 6f 6c 2e 20 5c 5c 0a 20 |lic symb|ol. \\. |
|00005600| 20 20 20 20 20 20 20 20 | 20 26 20 50 75 62 6c 69 | | & Publi|
|00005610| 63 20 73 79 6d 62 6f 6c | 20 69 73 20 76 69 73 69 |c symbol| is visi|
|00005620| 62 6c 65 20 69 6e 73 69 | 64 65 20 61 6e 64 20 6f |ble insi|de and o|
|00005630| 75 74 73 69 64 65 20 5c | 5c 0a 20 20 20 20 20 20 |utside \|\. |
|00005640| 20 20 20 20 26 20 6f 66 | 20 74 68 65 20 63 75 72 | & of| the cur|
|00005650| 72 65 6e 74 20 6f 62 6a | 65 63 74 2e 20 5c 5c 0a |rent obj|ect. \\.|
|00005660| 20 20 20 20 20 20 20 20 | 5c 68 6c 69 6e 65 0a 20 | |\hline. |
|00005670| 20 20 20 20 20 20 20 0a | 20 20 20 20 20 20 20 20 | .| |
|00005680| 65 78 74 65 72 6e 20 26 | 20 43 72 65 61 74 65 73 |extern &| Creates|
|00005690| 20 72 65 66 65 72 65 6e | 63 65 20 74 6f 20 6f 74 | referen|ce to ot|
|000056a0| 68 65 72 20 6f 62 6a 65 | 63 74 73 2e 20 5c 5c 0a |her obje|cts. \\.|
|000056b0| 20 20 20 20 20 20 20 20 | 20 20 26 20 50 75 62 6c | | & Publ|
|000056c0| 69 63 20 73 79 6d 62 6f | 6c 73 20 64 65 66 69 6e |ic symbo|ls defin|
|000056d0| 65 64 20 69 6e 20 6f 74 | 68 65 72 20 6f 62 6a 65 |ed in ot|her obje|
|000056e0| 63 74 73 20 61 72 65 20 | 76 69 73 69 62 6c 65 20 |cts are |visible |
|000056f0| 5c 5c 0a 20 20 20 20 20 | 20 20 20 20 20 26 20 74 |\\. | & t|
|00005700| 6f 20 63 75 72 72 65 6e | 74 20 6f 62 6a 65 63 74 |o curren|t object|
|00005710| 20 69 66 20 61 6e 64 20 | 6f 6e 6c 79 20 69 66 20 | if and |only if |
|00005720| 72 65 66 65 72 65 6e 63 | 65 73 20 65 78 69 73 74 |referenc|es exist|
|00005730| 2e 20 5c 5c 0a 20 20 20 | 20 20 20 20 20 5c 68 6c |. \\. | \hl|
|00005740| 69 6e 65 0a 20 20 20 20 | 20 20 20 20 0a 20 20 20 |ine. | . |
|00005750| 20 20 20 20 20 76 69 72 | 74 75 61 6c 20 26 20 43 | vir|tual & C|
|00005760| 72 65 61 74 65 73 20 76 | 69 72 74 75 61 6c 20 73 |reates v|irtual s|
|00005770| 79 6d 62 6f 6c 2e 20 5c | 5c 0a 20 20 20 20 20 20 |ymbol. \|\. |
|00005780| 20 20 20 20 26 20 54 68 | 69 73 20 73 70 65 63 69 | & Th|is speci|
|00005790| 61 6c 20 66 6c 61 67 20 | 61 6c 6c 6f 77 73 20 66 |al flag |allows f|
|000057a0| 75 72 74 68 65 72 20 72 | 65 64 65 66 69 6e 69 74 |urther r|edefinit|
|000057b0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 73 79 6d 62 6f |ion of t|he symbo|
|000057c0| 6c 2e 20 5c 5c 0a 20 20 | 20 20 20 20 20 20 20 20 |l. \\. | |
|000057d0| 26 20 54 68 65 20 76 61 | 6c 75 65 20 61 6e 64 20 |& The va|lue and |
|000057e0| 61 74 74 72 69 62 75 74 | 65 20 6f 66 20 74 68 65 |attribut|e of the|
|000057f0| 20 73 79 6d 62 6f 6c 20 | 63 61 6e 20 62 65 20 72 | symbol |can be r|
|00005800| 65 64 65 66 69 6e 65 64 | 20 62 79 20 5c 5c 0a 20 |edefined| by \\. |
|00005810| 20 20 20 20 20 20 20 20 | 20 26 20 61 6e 6f 74 68 | | & anoth|
|00005820| 65 72 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 66 |er defin|ition of|
|00005830| 20 74 68 65 20 73 61 6d | 65 20 73 79 6d 62 6f 6c | the sam|e symbol|
|00005840| 2e 20 5c 5c 20 20 20 20 | 20 20 20 20 20 20 0a 20 |. \\ | . |
|00005850| 20 20 20 20 20 20 20 5c | 68 6c 69 6e 65 0a 20 20 | \|hline. |
|00005860| 20 20 20 20 20 20 0a 20 | 20 20 20 20 20 5c 65 6e | . | \en|
|00005870| 64 7b 74 61 62 75 6c 61 | 72 7d 0a 20 20 20 20 5c |d{tabula|r}. \|
|00005880| 65 6e 64 7b 63 65 6e 74 | 65 72 7d 0a 20 20 20 20 |end{cent|er}. |
|00005890| 0a 20 20 20 20 53 79 6d | 62 6f 6c 20 63 61 6e 20 |. Sym|bol can |
|000058a0| 68 61 76 65 20 61 73 73 | 69 67 6e 65 64 20 6d 75 |have ass|igned mu|
|000058b0| 6c 74 69 70 6c 65 20 70 | 72 6f 70 65 72 74 69 65 |ltiple p|ropertie|
|000058c0| 73 2e 20 42 75 74 20 6e | 6f 74 20 61 6c 6c 20 6f |s. But n|ot all o|
|000058d0| 66 0a 20 20 20 20 74 68 | 65 6d 20 61 72 65 20 76 |f. th|em are v|
|000058e0| 61 6c 69 64 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |alid. Fo|r exampl|
|000058f0| 65 3b 20 73 79 6d 62 6f | 6c 20 64 65 63 6c 61 72 |e; symbo|l declar|
|00005900| 65 64 20 61 73 20 28 70 | 75 62 6c 69 63 2c 20 76 |ed as (p|ublic, v|
|00005910| 69 72 74 75 61 6c 29 20 | 69 73 0a 20 20 20 20 69 |irtual) |is. i|
|00005920| 6e 76 61 6c 69 64 20 62 | 75 74 20 28 65 78 74 65 |nvalid b|ut (exte|
|00005930| 72 6e 2c 20 76 69 72 74 | 75 61 6c 29 20 69 73 20 |rn, virt|ual) is |
|00005940| 72 69 67 68 74 2e 20 4e | 6f 74 65 20 74 68 61 74 |right. N|ote that|
|00005950| 20 61 74 74 72 69 62 75 | 74 65 20 28 65 78 74 65 | attribu|te (exte|
|00005960| 72 6e 29 0a 20 20 20 20 | 63 72 65 61 74 65 73 20 |rn). |creates |
|00005970| 72 65 66 65 72 65 6e 63 | 65 73 20 6f 75 74 73 69 |referenc|es outsi|
|00005980| 64 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6f |de the c|urrent o|
|00005990| 62 6a 65 63 74 20 61 6e | 64 20 28 70 75 62 6c 69 |bject an|d (publi|
|000059a0| 63 29 20 6f 6e 6c 79 0a | 20 20 20 20 65 78 70 6f |c) only.| expo|
|000059b0| 72 74 73 20 74 68 65 20 | 73 79 6d 62 6f 6c 2e 20 |rts the |symbol. |
|000059c0| 56 69 72 74 75 61 6c 20 | 73 79 6d 62 6f 6c 20 63 |Virtual |symbol c|
|000059d0| 61 6e 20 62 65 20 6f 6e | 6c 79 20 72 65 70 6c 61 |an be on|ly repla|
|000059e0| 63 65 64 20 62 79 20 6f | 75 74 73 69 64 65 0a 20 |ced by o|utside. |
|000059f0| 20 20 20 73 79 6d 62 6f | 6c 20 69 66 20 72 65 66 | symbo|l if ref|
|00005a00| 65 72 65 6e 63 65 20 65 | 78 69 73 74 2e 0a 20 20 |erence e|xist.. |
|00005a10| 20 20 0a 20 20 20 20 54 | 68 65 20 66 6f 6c 6c 6f | . T|he follo|
|00005a20| 77 69 6e 67 20 63 6f 6d | 62 69 6e 61 74 69 6f 6e |wing com|bination|
|00005a30| 73 20 6d 61 6b 65 20 73 | 65 6e 73 65 3a 0a 20 20 |s make s|ense:. |
|00005a40| 20 20 5c 62 65 67 69 6e | 7b 63 65 6e 74 65 72 7d | \begin|{center}|
|00005a50| 0a 20 20 20 20 20 20 5c | 62 65 67 69 6e 7b 74 61 |. \|begin{ta|
|00005a60| 62 75 6c 61 72 7d 7b 7c | 72 7c 6c 7c 7d 0a 20 20 |bular}{||r|l|}. |
|00005a70| 20 20 20 20 20 20 5c 68 | 6c 69 6e 65 0a 20 20 20 | \h|line. |
|00005a80| 20 20 20 20 20 7b 5c 62 | 66 20 61 74 74 72 69 62 | {\b|f attrib|
|00005a90| 75 74 65 7d 20 26 20 7b | 5c 62 66 20 6d 65 61 6e |ute} & {|\bf mean|
|00005aa0| 69 6e 67 7d 20 5c 5c 0a | 20 20 20 20 20 20 20 20 |ing} \\.| |
|00005ab0| 5c 68 6c 69 6e 65 20 5c | 68 6c 69 6e 65 0a 20 20 |\hline \|hline. |
|00005ac0| 20 20 20 20 20 0a 20 20 | 20 20 20 20 20 20 6e 6f | . | no|
|00005ad0| 6e 65 20 26 20 43 72 65 | 61 74 65 73 20 69 6e 74 |ne & Cre|ates int|
|00005ae0| 65 72 6e 61 6c 20 73 79 | 6d 62 6f 6c 2e 20 5c 5c |ernal sy|mbol. \\|
|00005af0| 0a 20 20 20 20 20 20 20 | 20 5c 68 6c 69 6e 65 0a |. | \hline.|
|00005b00| 20 20 20 20 20 20 20 20 | 0a 20 20 20 20 20 20 20 | |. |
|00005b10| 20 70 75 62 6c 69 63 20 | 26 20 43 72 65 61 74 65 | public |& Create|
|00005b20| 73 20 70 75 62 6c 69 63 | 20 73 79 6d 62 6f 6c 2e |s public| symbol.|
|00005b30| 20 5c 5c 0a 20 20 20 20 | 20 20 20 20 5c 68 6c 69 | \\. | \hli|
|00005b40| 6e 65 0a 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 |ne. | . |
|00005b50| 20 20 20 20 65 78 74 65 | 72 6e 20 26 20 43 72 65 | exte|rn & Cre|
|00005b60| 61 74 65 73 20 72 65 66 | 65 72 65 6e 63 65 20 74 |ates ref|erence t|
|00005b70| 6f 20 6f 74 68 65 72 20 | 6f 62 6a 65 63 74 73 2e |o other |objects.|
|00005b80| 20 5c 5c 0a 20 20 20 20 | 20 20 20 20 5c 68 6c 69 | \\. | \hli|
|00005b90| 6e 65 20 20 20 20 20 20 | 20 20 0a 20 20 20 20 20 |ne | . |
|00005ba0| 20 20 20 0a 20 20 20 20 | 20 20 20 20 76 69 72 74 | . | virt|
|00005bb0| 75 61 6c 20 26 20 43 72 | 65 61 74 65 73 20 69 6e |ual & Cr|eates in|
|00005bc0| 74 65 72 6e 61 6c 20 76 | 69 72 74 75 61 6c 20 73 |ternal v|irtual s|
|00005bd0| 79 6d 62 6f 6c 2e 20 5c | 5c 0a 20 20 20 20 20 20 |ymbol. \|\. |
|00005be0| 20 20 20 20 26 20 5c 65 | 6d 70 68 7b 54 68 69 73 | & \e|mph{This|
|00005bf0| 20 64 65 63 6c 61 72 61 | 74 69 6f 6e 20 6d 61 6b | declara|tion mak|
|00005c00| 65 73 20 73 65 6e 73 65 | 20 66 6f 72 20 64 65 76 |es sense| for dev|
|00005c10| 65 6c 6f 70 6d 65 6e 74 | 7d 20 5c 5c 0a 20 20 20 |elopment|} \\. |
|00005c20| 20 20 20 20 20 20 20 26 | 20 5c 65 6d 70 68 7b 70 | &| \emph{p|
|00005c30| 75 72 70 6f 73 65 73 20 | 6f 6e 6c 79 2e 7d 20 5c |urposes |only.} \|
|00005c40| 5c 0a 20 20 20 20 20 20 | 20 20 5c 68 6c 69 6e 65 |\. | \hline|
|00005c50| 20 20 20 20 20 20 20 20 | 0a 0a 20 20 20 20 20 20 | |.. |
|00005c60| 20 20 76 69 72 74 75 61 | 6c 20 65 78 74 65 72 6e | virtua|l extern|
|00005c70| 20 26 20 43 72 65 61 74 | 65 73 20 67 6c 6f 62 61 | & Creat|es globa|
|00005c80| 6c 20 76 69 72 74 75 61 | 6c 20 73 79 6d 62 6f 6c |l virtua|l symbol|
|00005c90| 2e 20 5c 5c 0a 20 20 20 | 20 20 20 20 20 5c 68 6c |. \\. | \hl|
|00005ca0| 69 6e 65 0a 0a 20 20 20 | 20 20 20 5c 65 6e 64 7b |ine.. | \end{|
|00005cb0| 74 61 62 75 6c 61 72 7d | 0a 20 20 20 20 5c 65 6e |tabular}|. \en|
|00005cc0| 64 7b 63 65 6e 74 65 72 | 7d 20 20 20 20 20 20 20 |d{center|} |
|00005cd0| 20 20 20 0a 0a 0a 20 20 | 5c 73 75 62 73 65 63 74 | ... |\subsect|
|00005ce0| 69 6f 6e 7b 4c 61 62 65 | 6c 7d 0a 20 20 0a 20 20 |ion{Labe|l}. . |
|00005cf0| 20 20 54 6f 20 6c 61 62 | 65 6c 20 6f 66 66 73 65 | To lab|el offse|
|00005d00| 74 20 69 73 20 61 73 73 | 69 67 6e 65 64 2e 0a 20 |t is ass|igned.. |
|00005d10| 20 20 20 47 65 6e 65 72 | 61 6c 20 66 6f 72 6d 20 | Gener|al form |
|00005d20| 6f 66 20 64 65 63 6c 61 | 72 61 74 69 6f 6e 3a 0a |of decla|ration:.|
|00005d30| 20 20 20 20 5c 61 73 74 | 65 70 7b 61 74 74 72 69 | \ast|ep{attri|
|00005d40| 62 75 74 65 73 20 6c 61 | 62 65 6c 5c 5f 6e 61 6d |butes la|bel\_nam|
|00005d50| 65 5c 7b 3a 5c 7d 7d 0a | 20 20 20 20 54 68 65 20 |e\{:\}}.| The |
|00005d60| 73 65 6d 69 63 6f 6c 6f | 6e 20 27 3a 27 20 69 73 |semicolo|n ':' is|
|00005d70| 20 72 65 71 75 69 72 65 | 64 20 6f 6e 6c 79 20 69 | require|d only i|
|00005d80| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 61 74 |f there |is no at|
|00005d90| 74 72 69 62 75 74 65 20 | 61 73 73 69 67 6e 65 64 |tribute |assigned|
|00005da0| 0a 20 20 20 20 74 6f 20 | 74 68 65 20 6c 61 62 65 |. to |the labe|
|00005db0| 6c 2e 20 20 20 20 0a 20 | 20 20 20 0a 20 20 5c 73 |l. . | . \s|
|00005dc0| 75 62 73 65 63 74 69 6f | 6e 7b 4d 61 63 72 6f 7d |ubsectio|n{Macro}|
|00005dd0| 0a 20 20 5c 6c 61 62 65 | 6c 7b 73 65 63 2d 6d 61 |. \labe|l{sec-ma|
|00005de0| 63 72 6f 7d 0a 20 20 0a | 20 20 20 20 4d 61 63 72 |cro}. .| Macr|
|00005df0| 6f 20 72 65 70 6c 61 63 | 65 73 20 6e 75 6d 62 65 |o replac|es numbe|
|00005e00| 72 73 20 77 69 74 68 20 | 63 6f 6e 73 74 61 6e 74 |rs with |constant|
|00005e10| 73 2c 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 6f |s, expre|ssions o|
|00005e20| 72 20 65 76 65 6e 0a 20 | 20 20 20 6c 61 72 67 65 |r even. | large|
|00005e30| 72 20 70 61 72 74 73 20 | 6f 66 20 63 6f 64 65 2e |r parts |of code.|
|00005e40| 0a 20 20 20 20 47 65 6e | 65 72 61 6c 20 66 6f 72 |. Gen|eral for|
|00005e50| 6d 20 6f 66 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |m of dec|laration|
|00005e60| 3a 0a 20 20 20 20 5c 61 | 73 74 65 70 7b 24 5c 73 |:. \a|step{$\s|
|00005e70| 68 61 72 70 24 64 65 66 | 69 6e 65 20 61 74 74 72 |harp$def|ine attr|
|00005e80| 69 62 75 74 65 73 20 6d | 61 63 72 6f 5c 5f 6e 61 |ibutes m|acro\_na|
|00005e90| 6d 65 28 24 61 5f 30 24 | 2c 24 61 5f 31 24 2c 2e |me($a_0$|,$a_1$,.|
|00005ea0| 2e 2e 2c 24 61 5f 6e 24 | 29 20 0a 20 20 20 20 20 |..,$a_n$|) . |
|00005eb0| 20 20 20 20 20 20 6d 61 | 63 72 6f 5c 5f 73 74 72 | ma|cro\_str|
|00005ec0| 69 6e 67 7d 0a 20 20 20 | 20 49 66 20 5c 65 6d 70 |ing}. | If \emp|
|00005ed0| 68 7b 6d 61 63 72 6f 5c | 5f 73 74 72 69 6e 67 7d |h{macro\|_string}|
|00005ee0| 20 64 6f 65 73 20 6e 6f | 74 20 66 69 74 20 69 6e | does no|t fit in|
|00005ef0| 74 6f 20 6f 6e 65 20 6c | 69 6e 65 2c 20 75 73 65 |to one l|ine, use|
|00005f00| 20 74 68 65 0a 20 20 20 | 20 24 5c 62 61 63 6b 73 | the. | $\backs|
|00005f10| 6c 61 73 68 24 20 63 68 | 61 72 61 63 74 65 72 20 |lash$ ch|aracter |
|00005f20| 6f 6e 20 74 68 65 20 65 | 6e 64 20 6f 66 20 65 61 |on the e|nd of ea|
|00005f30| 63 68 20 6e 6f 6e 2d 6c | 61 73 74 20 6c 69 6e 65 |ch non-l|ast line|
|00005f40| 2e 0a 20 20 20 20 41 6c | 73 6f 20 74 68 65 20 70 |.. Al|so the p|
|00005f50| 61 72 61 6d 65 74 65 72 | 73 20 24 61 5f 30 2c 20 |arameter|s $a_0, |
|00005f60| 61 5f 31 2c 20 2e 2e 2e | 24 20 61 6e 64 20 6f 6e |a_1, ...|$ and on|
|00005f70| 20 6d 61 79 20 62 65 20 | 73 70 6c 69 74 20 69 6e | may be |split in|
|00005f80| 74 6f 20 74 77 6f 20 6f | 72 20 0a 20 20 20 20 6d |to two o|r . m|
|00005f90| 6f 72 65 20 6c 69 6e 65 | 73 2e 20 41 64 64 69 74 |ore line|s. Addit|
|00005fa0| 69 6f 6e 61 6c 20 63 68 | 61 72 61 63 74 65 72 20 |ional ch|aracter |
|00005fb0| 6f 6e 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |on the e|nd of th|
|00005fc0| 65 20 6c 69 6e 65 20 69 | 73 20 6e 6f 74 20 6e 65 |e line i|s not ne|
|00005fd0| 65 64 65 64 20 0a 20 20 | 20 20 73 69 6e 63 65 20 |eded . | since |
|00005fe0| 65 76 65 72 79 20 70 61 | 72 61 6d 65 74 65 72 20 |every pa|rameter |
|00005ff0| 69 73 20 74 65 72 6d 69 | 6e 61 74 65 64 20 65 69 |is termi|nated ei|
|00006000| 74 68 65 72 20 62 79 20 | 63 6f 6d 61 20 6f 72 20 |ther by |coma or |
|00006010| 29 20 63 68 61 72 61 63 | 74 65 72 2e 0a 20 20 20 |) charac|ter.. |
|00006020| 20 0a 20 20 20 20 54 68 | 65 20 67 65 6e 65 72 61 | . Th|e genera|
|00006030| 6c 20 66 6f 72 6d 20 63 | 61 6e 20 62 65 20 77 72 |l form c|an be wr|
|00006040| 69 74 74 65 6e 20 61 73 | 3a 0a 20 20 20 20 5c 61 |itten as|:. \a|
|00006050| 73 74 65 70 7b 24 5c 73 | 68 61 72 70 24 64 65 66 |step{$\s|harp$def|
|00006060| 69 6e 65 20 61 74 74 72 | 69 62 75 74 65 73 20 6d |ine attr|ibutes m|
|00006070| 61 63 72 6f 5c 5f 6e 61 | 6d 65 28 24 61 5f 30 24 |acro\_na|me($a_0$|
|00006080| 2c 24 61 5f 31 24 2c 2e | 2e 2e 2c 24 61 5f 6e 24 |,$a_1$,.|..,$a_n$|
|00006090| 29 20 0a 20 20 20 20 20 | 20 20 20 20 20 20 6d 61 |) . | ma|
|000060a0| 63 72 6f 5c 5f 73 74 72 | 69 6e 67 24 5f 30 24 20 |cro\_str|ing$_0$ |
|000060b0| 24 5c 62 61 63 6b 73 6c | 61 73 68 24 20 5c 5c 0a |$\backsl|ash$ \\.|
|000060c0| 20 20 20 20 20 20 20 20 | 20 20 20 6d 61 63 72 6f | | macro|
|000060d0| 5c 5f 73 74 72 69 6e 67 | 24 5f 31 24 20 24 5c 20 |\_string|$_1$ $\ |
|000060e0| 5c 20 5c 62 61 63 6b 73 | 6c 61 73 68 24 20 5c 5c |\ \backs|lash$ \\|
|000060f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 2e 2e 2e 5c |. | ...\|
|00006100| 5c 0a 20 20 20 20 20 20 | 20 20 20 20 20 6d 61 63 |\. | mac|
|00006110| 72 6f 5c 5f 73 74 72 69 | 6e 67 24 5f 7b 6e 2d 31 |ro\_stri|ng$_{n-1|
|00006120| 7d 24 20 24 5c 62 61 63 | 6b 73 6c 61 73 68 24 20 |}$ $\bac|kslash$ |
|00006130| 5c 5c 0a 20 20 20 20 20 | 20 20 20 20 20 20 6d 61 |\\. | ma|
|00006140| 63 72 6f 5c 5f 73 74 72 | 69 6e 67 24 5f 6e 24 0a |cro\_str|ing$_n$.|
|00006150| 20 20 20 20 7d 0a 20 20 | 20 20 5c 6e 6f 74 65 7b | }. | \note{|
|00006160| 61 76 61 2d 30 2e 31 2e | 38 20 64 6f 65 73 20 6e |ava-0.1.|8 does n|
|00006170| 6f 74 20 79 65 74 20 73 | 75 70 70 6f 72 74 20 73 |ot yet s|upport s|
|00006180| 65 63 74 69 6f 6e 73 20 | 61 6e 64 20 6c 61 62 65 |ections |and labe|
|00006190| 6c 73 2e 20 0a 20 20 20 | 20 20 20 20 20 20 20 54 |ls. . | T|
|000061a0| 68 65 79 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 62 |hey shou|ld not b|
|000061b0| 65 20 75 73 65 64 20 77 | 69 74 68 69 6e 20 74 68 |e used w|ithin th|
|000061c0| 65 20 6d 61 63 72 6f 2e | 7d 0a 0a 0a 0a 5c 73 65 |e macro.|}....\se|
|000061d0| 63 74 69 6f 6e 7b 53 65 | 67 6d 65 6e 74 73 7d 0a |ction{Se|gments}.|
|000061e0| 5c 6c 61 62 65 6c 7b 73 | 65 63 2d 73 65 67 6d 65 |\label{s|ec-segme|
|000061f0| 6e 74 7d 0a 0a 20 20 20 | 20 54 68 65 20 69 6d 70 |nt}.. | The imp|
|00006200| 6f 72 74 61 6e 63 65 20 | 6f 66 20 74 68 65 20 66 |ortance |of the f|
|00006210| 75 6c 6c 20 63 6f 6e 74 | 72 6f 6c 20 6f 76 65 72 |ull cont|rol over|
|00006220| 20 74 68 65 20 63 6f 64 | 65 20 69 73 20 63 72 75 | the cod|e is cru|
|00006230| 63 69 63 61 6c 20 61 6e | 64 20 63 61 6e 6e 6f 74 |cical an|d cannot|
|00006240| 0a 20 20 20 20 62 65 20 | 65 78 70 6c 61 69 6e 65 |. be |explaine|
|00006250| 64 20 69 6e 20 6f 6e 65 | 20 68 6f 75 72 20 63 6f |d in one| hour co|
|00006260| 75 72 73 65 2e 20 53 70 | 65 63 69 61 6c 6c 79 20 |urse. Sp|ecially |
|00006270| 69 66 20 74 68 65 20 74 | 61 72 67 65 74 20 64 65 |if the t|arget de|
|00006280| 76 69 63 65 0a 20 20 20 | 20 68 61 73 20 6c 69 6d |vice. | has lim|
|00006290| 69 74 65 64 20 6d 65 6d | 6f 72 79 20 2d 20 6f 6b |ited mem|ory - ok|
|000062a0| 61 79 2c 20 65 76 65 72 | 79 20 6d 61 63 68 69 6e |ay, ever|y machin|
|000062b0| 65 20 6f 6e 20 74 68 65 | 20 70 6c 61 6e 65 74 20 |e on the| planet |
|000062c0| 69 73 20 0a 20 20 20 20 | 6c 69 6d 69 74 65 64 2c |is . |limited,|
|000062d0| 20 62 75 74 20 31 20 6f | 72 20 38 20 6b 62 20 6f | but 1 o|r 8 kb o|
|000062e0| 66 20 6d 65 6d 6f 72 79 | 20 69 73 20 73 6f 6d 65 |f memory| is some|
|000062f0| 74 68 69 6e 67 20 68 65 | 61 76 69 6c 79 0a 20 20 |thing he|avily. |
|00006300| 20 20 75 6e 64 65 72 20 | 74 68 65 20 6e 6f 72 6d | under |the norm|
|00006310| 61 6c 20 72 61 6e 67 65 | 20 70 65 6f 70 6c 65 20 |al range| people |
|00006320| 6b 6e 6f 77 20 69 74 20 | 66 72 6f 6d 20 74 68 65 |know it |from the|
|00006330| 20 50 43 73 2e 0a 20 20 | 20 20 0a 20 20 20 20 54 | PCs.. | . T|
|00006340| 72 65 61 74 6d 65 6e 74 | 20 6f 66 20 73 65 67 6d |reatment| of segm|
|00006350| 65 6e 74 73 20 69 73 20 | 68 65 61 76 69 6c 79 20 |ents is |heavily |
|00006360| 65 78 74 65 6e 64 65 64 | 20 69 6e 20 63 6f 6d 70 |extended| in comp|
|00006370| 61 72 69 73 6f 6e 20 74 | 6f 20 74 68 65 20 0a 20 |arison t|o the . |
|00006380| 20 20 20 6f 74 68 65 72 | 20 61 73 73 65 6d 62 6c | other| assembl|
|00006390| 65 72 73 20 61 6e 64 20 | 6c 69 6e 6b 65 72 73 2e |ers and |linkers.|
|000063a0| 20 54 68 65 20 73 74 61 | 6e 64 61 72 64 20 63 6f | The sta|ndard co|
|000063b0| 6d 6d 61 6e 64 0a 20 20 | 20 20 5c 61 73 74 65 70 |mmand. | \astep|
|000063c0| 7b 6f 72 67 20 6f 66 66 | 73 65 74 7d 0a 20 20 20 |{org off|set}. |
|000063d0| 20 64 6f 65 73 20 6e 6f | 74 20 65 78 69 73 74 2e | does no|t exist.|
|000063e0| 20 42 65 74 74 65 72 20 | 72 65 73 75 6c 74 20 69 | Better |result i|
|000063f0| 73 20 61 63 68 69 65 76 | 65 64 20 62 79 20 75 73 |s achiev|ed by us|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.